Interface WorldProperties
- All Superinterfaces:
GameRuleHolder
,WeatherUniverse
- All Known Subinterfaces:
ClientWorldProperties
,ServerWorldProperties
Represents the properties of a
World
which are persisted across runtime instances.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.world.weather.WeatherUniverse
WeatherUniverse.Mutable
-
Method Summary
Modifier and TypeMethodDescriptiondayTime()
Gets the time of day.Gets theDifficulty
.gameTime()
Gets theMinecraftDayTime
since the world was created.boolean
hardcore()
Gets if this is in hardcore mode.void
setSpawnPosition
(Vector3i position) Sets the default spawn position.Gets the default spawn position.Gets the savedWorldBorder
for 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 Details
-
spawnPosition
Vector3i spawnPosition()Gets the default spawn position.- Returns:
- The spawn position
-
setSpawnPosition
Sets the default spawn position.- Parameters:
position
- The spawn position
-
gameTime
MinecraftDayTime gameTime()Gets theMinecraftDayTime
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 theDifficulty
.- Returns:
- The difficulty
-
worldBorder
WorldBorder worldBorder()Gets the savedWorldBorder
for this world.- Returns:
- The world border
-