Interface WorldProperties
-
- All Superinterfaces:
GameRuleHolder
,WeatherUniverse
- All Known Subinterfaces:
ClientWorldProperties
,ServerWorldProperties
public interface WorldProperties extends WeatherUniverse, GameRuleHolder
Represents the properties of aWorld
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MinecraftDayTime
dayTime()
Gets the time of day.Difficulty
difficulty()
Gets theDifficulty
.MinecraftDayTime
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.Vector3i
spawnPosition()
Gets the default spawn position.WorldBorder
worldBorder()
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 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 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
-
-