public class LevelProperties extends Object implements class_5217, class_5219
| Constructor and Description |
|---|
LevelProperties(CompoundTag tag,
com.mojang.datafixers.DataFixer dataFixer,
int dataVersion,
CompoundTag playerData) |
LevelProperties(LevelInfo levelInfo) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmethod_27418method_27440private final String versionName
private final int versionId
private final boolean versionSnapshot
private final long randomSeed
private final LevelGeneratorOptions generatorOptions
private int spawnX
private int spawnY
private int spawnZ
private long time
private long timeOfDay
private long lastPlayed
private long sizeOnDisk
@Nullable private final com.mojang.datafixers.DataFixer dataFixer
private final int dataVersion
private boolean playerDataLoaded
private CompoundTag playerData
private final String levelName
private final int version
private int clearWeatherTime
private boolean raining
private int rainTime
private boolean thundering
private int thunderTime
private GameMode gameMode
private final boolean structures
private final boolean hardcore
private final boolean commandsAllowed
private final boolean field_24192
private boolean initialized
private Difficulty difficulty
private boolean difficultyLocked
private WorldBorder.class_5200 field_24193
private final Map<DimensionType,CompoundTag> worldData
@Nullable private CompoundTag customBossEvents
private int wanderingTraderSpawnDelay
private int wanderingTraderSpawnChance
private UUID wanderingTraderId
private boolean modded
private final GameRules gameRules
private final Timer<MinecraftServer> scheduledEvents
public LevelProperties(CompoundTag tag, com.mojang.datafixers.DataFixer dataFixer, int dataVersion, @Nullable CompoundTag playerData)
public LevelProperties(LevelInfo levelInfo)
private static <T> com.mojang.datafixers.Dynamic<T> updateGeneratorOptionsData(LevelGeneratorType type, com.mojang.datafixers.Dynamic<T> dynamic, int dataVersion, com.mojang.datafixers.DataFixer dataFixer)
public CompoundTag cloneWorldTag(@Nullable CompoundTag compoundTag)
cloneWorldTag in interface class_5219private void updateProperties(CompoundTag levelTag, CompoundTag playerTag)
public long getSeed()
getSeed in interface class_5217getSeed in interface class_5219public int getSpawnX()
getSpawnX in interface class_5217public int getSpawnY()
getSpawnY in interface class_5217public int getSpawnZ()
getSpawnZ in interface class_5217public long getTime()
getTime in interface class_5217public long getTimeOfDay()
getTimeOfDay in interface class_5217private void loadPlayerData()
public CompoundTag getPlayerData()
getPlayerData in interface class_5219public void method_27416(int int2)
method_27416 in interface class_5217public void method_27417(int int2)
method_27417 in interface class_5217public void method_27419(int int2)
method_27419 in interface class_5217public void setTime(long long2)
setTime in interface class_5217public void setTimeOfDay(long long2)
setTimeOfDay in interface class_5217public void setSpawnPos(BlockPos blockPos)
setSpawnPos in interface class_5217public String getLevelName()
getLevelName in interface class_5217getLevelName in interface class_5219public int getVersion()
getVersion in interface class_5219@Environment(value=CLIENT) public long getLastPlayed()
getLastPlayed in interface class_5219public int getClearWeatherTime()
getClearWeatherTime in interface class_5217public void setClearWeatherTime(int int2)
setClearWeatherTime in interface class_5217public boolean isThundering()
isThundering in interface class_5217public void setThundering(boolean bool)
setThundering in interface class_5217public int getThunderTime()
getThunderTime in interface class_5217public void setThunderTime(int int2)
setThunderTime in interface class_5217public boolean isRaining()
isRaining in interface class_5217public void setRaining(boolean bool)
setRaining in interface class_5217public int getRainTime()
getRainTime in interface class_5217public void setRainTime(int int2)
setRainTime in interface class_5217public GameMode getGameMode()
getGameMode in interface class_5217getGameMode in interface class_5219public boolean method_27420()
method_27420 in interface class_5217public void setGameMode(GameMode gameMode)
setGameMode in interface class_5217setGameMode in interface class_5219public boolean isHardcore()
isHardcore in interface class_5217isHardcore in interface class_5219public LevelGeneratorType getGeneratorType()
getGeneratorType in interface class_5217public LevelGeneratorOptions method_27421()
method_27421 in interface class_5217public boolean areCommandsAllowed()
areCommandsAllowed in interface class_5217areCommandsAllowed in interface class_5219public boolean isInitialized()
isInitialized in interface class_5217public void setInitialized(boolean bool)
setInitialized in interface class_5217public GameRules getGameRules()
getGameRules in interface class_5217getGameRules in interface class_5219public WorldBorder.class_5200 method_27422()
method_27422 in interface class_5217public void method_27415(WorldBorder.class_5200 class_5200)
method_27415 in interface class_5217public Difficulty getDifficulty()
getDifficulty in interface class_5217getDifficulty in interface class_5219public void setDifficulty(Difficulty difficulty)
setDifficulty in interface class_5219public boolean isDifficultyLocked()
isDifficultyLocked in interface class_5217isDifficultyLocked in interface class_5219public void setDifficultyLocked(boolean bool)
setDifficultyLocked in interface class_5219public Timer<MinecraftServer> getScheduledEvents()
getScheduledEvents in interface class_5217public void populateCrashReport(CrashReportSection crashReportSection)
populateCrashReport in interface class_5217populateCrashReport in interface class_5219public CompoundTag method_27434(DimensionType dimensionType)
method_27434 in interface class_5219public void method_27435(DimensionType dimensionType, CompoundTag compoundTag)
method_27435 in interface class_5219public CompoundTag getWorldData()
getWorldData in interface class_5217public void setWorldData(CompoundTag compoundTag)
setWorldData in interface class_5217@Environment(value=CLIENT) public int getVersionId()
getVersionId in interface class_5219@Environment(value=CLIENT) public boolean isVersionSnapshot()
isVersionSnapshot in interface class_5219@Environment(value=CLIENT) public String getVersionName()
getVersionName in interface class_5219public Set<String> getDisabledDataPacks()
getDisabledDataPacks in interface class_5219public Set<String> getEnabledDataPacks()
getEnabledDataPacks in interface class_5219@Nullable public CompoundTag getCustomBossEvents()
getCustomBossEvents in interface class_5219public void setCustomBossEvents(@Nullable CompoundTag compoundTag)
setCustomBossEvents in interface class_5219public int getWanderingTraderSpawnDelay()
getWanderingTraderSpawnDelay in interface class_5217public void setWanderingTraderSpawnDelay(int int2)
setWanderingTraderSpawnDelay in interface class_5217public int getWanderingTraderSpawnChance()
getWanderingTraderSpawnChance in interface class_5217public void setWanderingTraderSpawnChance(int int2)
setWanderingTraderSpawnChance in interface class_5217public void setWanderingTraderId(UUID uUID)
setWanderingTraderId in interface class_5217public void addServerBrand(String string, boolean bool)
addServerBrand in interface class_5219public boolean method_27431()
method_27431 in interface class_5219public Set<String> method_27432()
method_27432 in interface class_5219public class_5217 method_27437(DimensionType dimensionType)
method_27437 in interface class_5219public LevelInfo method_27433()
method_27433 in interface class_5219