Interface WorldProperties

All Superinterfaces:
GameRuleHolder, WeatherUniverse
All Known Subinterfaces:
ClientWorldProperties, ServerWorldProperties

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

    • spawnPosition

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

      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

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

      Difficulty difficulty()
      Gets the Difficulty.
      Returns:
      The difficulty
    • worldBorder

      WorldBorder worldBorder()
      Gets the saved WorldBorder for this world.
      Returns:
      The world border