Interface WorldProperties

All Superinterfaces:
DataHolder, DataHolder.Mutable, ValueContainer, WeatherUniverse
All Known Subinterfaces:
ClientWorldProperties, ServerWorldProperties

public interface WorldProperties extends WeatherUniverse, DataHolder.Mutable
Represents the properties of a World which are persisted across runtime instances.
  • Method Details

    • spawnPosition

      default Vector3i spawnPosition()
      Gets the default spawn position.
      Returns:
      The spawn position
    • setSpawnPosition

      default void setSpawnPosition(Vector3i position)
      Sets the default spawn position.
      Parameters:
      position - The spawn position
    • gameTime

      MinecraftDayTime gameTime()
      Gets the MinecraftDayTime since the world was created.
      Returns:
      The total time
    • dayTime

      MinecraftDayTime dayTime()
      Gets the time of day.
      Returns:
      The time of day
    • hardcore

      default boolean hardcore()
      Gets if this is in hardcore mode.
      Returns:
      Is hardcore
    • difficulty

      default Difficulty difficulty()
      Gets the Difficulty.
      Returns:
      The difficulty