public class UnmodifiableLevelProperties extends Object implements ServerWorldProperties
Modifier and Type | Field and Description |
---|---|
private SaveProperties |
field_24179 |
private ServerWorldProperties |
properties |
Constructor and Description |
---|
UnmodifiableLevelProperties(SaveProperties saveProperties,
ServerWorldProperties serverWorldProperties) |
private final SaveProperties field_24179
private final ServerWorldProperties properties
public UnmodifiableLevelProperties(SaveProperties saveProperties, ServerWorldProperties serverWorldProperties)
public int getSpawnX()
getSpawnX
in interface WorldProperties
public int getSpawnY()
getSpawnY
in interface WorldProperties
public int getSpawnZ()
getSpawnZ
in interface WorldProperties
public float getSpawnAngle()
getSpawnAngle
in interface WorldProperties
public long getTime()
getTime
in interface WorldProperties
public long getTimeOfDay()
getTimeOfDay
in interface WorldProperties
public String getLevelName()
getLevelName
in interface ServerWorldProperties
public int getClearWeatherTime()
getClearWeatherTime
in interface ServerWorldProperties
public void setClearWeatherTime(int clearWeatherTime)
setClearWeatherTime
in interface ServerWorldProperties
public boolean isThundering()
isThundering
in interface WorldProperties
public int getThunderTime()
getThunderTime
in interface ServerWorldProperties
public boolean isRaining()
isRaining
in interface WorldProperties
public int getRainTime()
getRainTime
in interface ServerWorldProperties
public GameMode getGameMode()
getGameMode
in interface ServerWorldProperties
public void setSpawnX(int spawnX)
setSpawnX
in interface MutableWorldProperties
public void setSpawnY(int spawnY)
setSpawnY
in interface MutableWorldProperties
public void setSpawnZ(int spawnZ)
setSpawnZ
in interface MutableWorldProperties
public void setSpawnAngle(float angle)
setSpawnAngle
in interface MutableWorldProperties
public void setTime(long time)
setTime
in interface ServerWorldProperties
public void setTimeOfDay(long timeOfDay)
setTimeOfDay
in interface ServerWorldProperties
public void setSpawnPos(BlockPos pos, float angle)
setSpawnPos
in interface MutableWorldProperties
public void setThundering(boolean thundering)
setThundering
in interface ServerWorldProperties
public void setThunderTime(int thunderTime)
setThunderTime
in interface ServerWorldProperties
public void setRaining(boolean raining)
setRaining
in interface WorldProperties
public void setRainTime(int rainTime)
setRainTime
in interface ServerWorldProperties
public void setGameMode(GameMode gameMode)
setGameMode
in interface ServerWorldProperties
public boolean isHardcore()
isHardcore
in interface WorldProperties
public boolean areCommandsAllowed()
areCommandsAllowed
in interface ServerWorldProperties
public boolean isInitialized()
isInitialized
in interface ServerWorldProperties
public void setInitialized(boolean initialized)
setInitialized
in interface ServerWorldProperties
public GameRules getGameRules()
getGameRules
in interface WorldProperties
public WorldBorder.Properties getWorldBorder()
getWorldBorder
in interface ServerWorldProperties
public void setWorldBorder(WorldBorder.Properties properties)
setWorldBorder
in interface ServerWorldProperties
public Difficulty getDifficulty()
getDifficulty
in interface WorldProperties
public boolean isDifficultyLocked()
isDifficultyLocked
in interface WorldProperties
public Timer<MinecraftServer> getScheduledEvents()
getScheduledEvents
in interface ServerWorldProperties
public int getWanderingTraderSpawnDelay()
getWanderingTraderSpawnDelay
in interface ServerWorldProperties
public void setWanderingTraderSpawnDelay(int wanderingTraderSpawnDelay)
setWanderingTraderSpawnDelay
in interface ServerWorldProperties
public int getWanderingTraderSpawnChance()
getWanderingTraderSpawnChance
in interface ServerWorldProperties
public void setWanderingTraderSpawnChance(int wanderingTraderSpawnChance)
setWanderingTraderSpawnChance
in interface ServerWorldProperties
public void setWanderingTraderId(UUID uuid)
setWanderingTraderId
in interface ServerWorldProperties
public void populateCrashReport(CrashReportSection reportSection)
populateCrashReport
in interface ServerWorldProperties
populateCrashReport
in interface WorldProperties