Interface WorldProperties
-
- All Superinterfaces:
GameRuleHolder,WeatherUniverse
- All Known Subinterfaces:
ClientWorldProperties,ServerWorldProperties
public interface WorldProperties extends WeatherUniverse, GameRuleHolder
Represents the properties of aWorldwhich are persisted across runtime instances.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.world.weather.WeatherUniverse
WeatherUniverse.Mutable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MinecraftDayTimedayTime()Gets the time of day.Difficultydifficulty()Gets theDifficulty.MinecraftDayTimegameTime()Gets theMinecraftDayTimesince the world was created.booleanhardcore()Gets if this is in hardcore mode.voidsetSpawnPosition(Vector3i position)Sets the default spawn position.Vector3ispawnPosition()Gets the default spawn position.WorldBorderworldBorder()Gets the savedWorldBorderfor this world.-
Methods inherited from interface org.spongepowered.api.world.gamerule.GameRuleHolder
gameRule, gameRules, setGameRule
-
Methods inherited from interface org.spongepowered.api.world.weather.WeatherUniverse
weather
-
-
-
-
Method Detail
-
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 theMinecraftDayTimesince 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 theDifficulty.- Returns:
- The difficulty
-
worldBorder
WorldBorder worldBorder()
Gets the savedWorldBorderfor this world.- Returns:
- The world border
-
-