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, sha256Hash
private final LevelProperties properties
public UnmodifiableLevelProperties(LevelProperties properties)
public CompoundTag cloneWorldTag(@Nullable CompoundTag playerTag)
cloneWorldTag
in class LevelProperties
public long getSeed()
getSeed
in class LevelProperties
public int getSpawnX()
getSpawnX
in class LevelProperties
public int getSpawnY()
getSpawnY
in class LevelProperties
public int getSpawnZ()
getSpawnZ
in class LevelProperties
public long getTime()
getTime
in class LevelProperties
public long getTimeOfDay()
getTimeOfDay
in class LevelProperties
public CompoundTag getPlayerData()
getPlayerData
in class LevelProperties
public String getLevelName()
getLevelName
in class LevelProperties
public int getVersion()
getVersion
in class LevelProperties
@Environment(value=CLIENT) public long getLastPlayed()
getLastPlayed
in class LevelProperties
public boolean isThundering()
isThundering
in class LevelProperties
public int getThunderTime()
getThunderTime
in class LevelProperties
public boolean isRaining()
isRaining
in class LevelProperties
public int getRainTime()
getRainTime
in class LevelProperties
public GameMode getGameMode()
getGameMode
in class LevelProperties
public void setTime(long time)
setTime
in class LevelProperties
public void setTimeOfDay(long timeOfDay)
setTimeOfDay
in class LevelProperties
public void setSpawnPos(BlockPos pos)
setSpawnPos
in class LevelProperties
public void setLevelName(String levelName)
setLevelName
in class LevelProperties
public void setVersion(int version)
setVersion
in class LevelProperties
public void setThundering(boolean thundering)
setThundering
in class LevelProperties
public void setThunderTime(int thunderTime)
setThunderTime
in class LevelProperties
public void setRaining(boolean raining)
setRaining
in class LevelProperties
public void setRainTime(int rainTime)
setRainTime
in class LevelProperties
public boolean hasStructures()
hasStructures
in class LevelProperties
public boolean isHardcore()
isHardcore
in class LevelProperties
public LevelGeneratorType getGeneratorType()
getGeneratorType
in class LevelProperties
public void setGeneratorOptions(LevelGeneratorOptions options)
setGeneratorOptions
in class LevelProperties
public boolean areCommandsAllowed()
areCommandsAllowed
in class LevelProperties
public void setCommandsAllowed(boolean commandsAllowed)
setCommandsAllowed
in class LevelProperties
public boolean isInitialized()
isInitialized
in class LevelProperties
public void setInitialized(boolean initialized)
setInitialized
in class LevelProperties
public GameRules getGameRules()
getGameRules
in class LevelProperties
public Difficulty getDifficulty()
getDifficulty
in class LevelProperties
public void setDifficulty(Difficulty difficulty)
setDifficulty
in class LevelProperties
public boolean isDifficultyLocked()
isDifficultyLocked
in class LevelProperties
public void setDifficultyLocked(boolean difficultyLocked)
setDifficultyLocked
in class LevelProperties
public Timer<MinecraftServer> getScheduledEvents()
getScheduledEvents
in class LevelProperties
public void setWorldData(DimensionType type, CompoundTag tag)
setWorldData
in class LevelProperties
public CompoundTag getWorldData(DimensionType type)
getWorldData
in class LevelProperties
public void populateCrashReport(CrashReportSection section)
populateCrashReport
in class LevelProperties