public class UnmodifiableLevelProperties extends LevelProperties
| Modifier and Type | Field and Description |
|---|---|
private LevelProperties |
properties |
DEFAULT_DIFFICULTY| Constructor and Description |
|---|
UnmodifiableLevelProperties(LevelProperties properties) |
addServerBrand, borderCenterZ, getBorderCenterX, getBorderCenterZ, getBorderDamagePerBlock, getBorderSafeZone, getBorderSize, getBorderSizeLerpTarget, getBorderSizeLerpTime, getBorderWarningBlocks, getBorderWarningTime, getClearWeatherTime, getCustomBossEvents, getDisabledDataPacks, getEnabledDataPacks, getGeneratorOptions, getVersionId, getVersionName, getWanderingTraderSpawnChance, getWanderingTraderSpawnDelay, isVersionSnapshot, loadLevelInfo, setBorderCenterX, setBorderDamagePerBlock, setBorderSafeZone, setBorderSize, setBorderSizeLerpTarget, setBorderSizeLerpTime, setBorderWarningBlocks, setBorderWarningTime, setClearWeatherTime, setCustomBossEvents, setGameMode, setHardcore, setStructures, setWanderingTraderId, setWanderingTraderSpawnChance, setWanderingTraderSpawnDelay, sha256Hashprivate final LevelProperties properties
public UnmodifiableLevelProperties(LevelProperties properties)
public CompoundTag cloneWorldTag(@Nullable CompoundTag playerTag)
cloneWorldTag in class LevelPropertiespublic long getSeed()
getSeed in class LevelPropertiespublic int getSpawnX()
getSpawnX in class LevelPropertiespublic int getSpawnY()
getSpawnY in class LevelPropertiespublic int getSpawnZ()
getSpawnZ in class LevelPropertiespublic long getTime()
getTime in class LevelPropertiespublic long getTimeOfDay()
getTimeOfDay in class LevelPropertiespublic CompoundTag getPlayerData()
getPlayerData in class LevelPropertiespublic String getLevelName()
getLevelName in class LevelPropertiespublic int getVersion()
getVersion in class LevelProperties@Environment(value=CLIENT) public long getLastPlayed()
getLastPlayed in class LevelPropertiespublic boolean isThundering()
isThundering in class LevelPropertiespublic int getThunderTime()
getThunderTime in class LevelPropertiespublic boolean isRaining()
isRaining in class LevelPropertiespublic int getRainTime()
getRainTime in class LevelPropertiespublic GameMode getGameMode()
getGameMode in class LevelPropertiespublic void setTime(long time)
setTime in class LevelPropertiespublic void setTimeOfDay(long timeOfDay)
setTimeOfDay in class LevelPropertiespublic void setSpawnPos(BlockPos pos)
setSpawnPos in class LevelPropertiespublic void setLevelName(String levelName)
setLevelName in class LevelPropertiespublic void setVersion(int version)
setVersion in class LevelPropertiespublic void setThundering(boolean thundering)
setThundering in class LevelPropertiespublic void setThunderTime(int thunderTime)
setThunderTime in class LevelPropertiespublic void setRaining(boolean raining)
setRaining in class LevelPropertiespublic void setRainTime(int rainTime)
setRainTime in class LevelPropertiespublic boolean hasStructures()
hasStructures in class LevelPropertiespublic boolean isHardcore()
isHardcore in class LevelPropertiespublic LevelGeneratorType getGeneratorType()
getGeneratorType in class LevelPropertiespublic void setGeneratorOptions(LevelGeneratorOptions options)
setGeneratorOptions in class LevelPropertiespublic boolean areCommandsAllowed()
areCommandsAllowed in class LevelPropertiespublic void setCommandsAllowed(boolean commandsAllowed)
setCommandsAllowed in class LevelPropertiespublic boolean isInitialized()
isInitialized in class LevelPropertiespublic void setInitialized(boolean initialized)
setInitialized in class LevelPropertiespublic GameRules getGameRules()
getGameRules in class LevelPropertiespublic Difficulty getDifficulty()
getDifficulty in class LevelPropertiespublic void setDifficulty(Difficulty difficulty)
setDifficulty in class LevelPropertiespublic boolean isDifficultyLocked()
isDifficultyLocked in class LevelPropertiespublic void setDifficultyLocked(boolean difficultyLocked)
setDifficultyLocked in class LevelPropertiespublic Timer<MinecraftServer> getScheduledEvents()
getScheduledEvents in class LevelPropertiespublic void setWorldData(DimensionType type, CompoundTag tag)
setWorldData in class LevelPropertiespublic CompoundTag getWorldData(DimensionType type)
getWorldData in class LevelPropertiespublic void populateCrashReport(CrashReportSection section)
populateCrashReport in class LevelProperties