public class LevelProperties extends Object implements class_5268, class_5219
| Modifier and Type | Field and Description |
|---|---|
private int |
clearWeatherTime |
private CompoundTag |
customBossEvents |
private com.mojang.datafixers.DataFixer |
dataFixer |
private int |
dataVersion |
private boolean |
difficultyLocked |
private Set<String> |
disabledDataPacks |
private Set<String> |
enabledDataPacks |
private WorldBorder.class_5200 |
field_24193 |
private static Logger |
field_25029 |
private LevelInfo |
field_25030 |
private CompoundTag |
field_25031 |
private boolean |
initialized |
private boolean |
modded |
private CompoundTag |
playerData |
private boolean |
playerDataLoaded |
private boolean |
raining |
private int |
rainTime |
private Timer<MinecraftServer> |
scheduledEvents |
private Set<String> |
serverBrands |
private int |
spawnX |
private int |
spawnY |
private int |
spawnZ |
private boolean |
thundering |
private int |
thunderTime |
private long |
time |
private long |
timeOfDay |
private int |
version |
private UUID |
wanderingTraderId |
private int |
wanderingTraderSpawnChance |
private int |
wanderingTraderSpawnDelay |
| Modifier | Constructor and Description |
|---|---|
private |
LevelProperties(com.mojang.datafixers.DataFixer dataFixer,
int int2,
CompoundTag compoundTag,
boolean bool,
int int3,
int int4,
int int5,
long long2,
long long3,
int int6,
int int7,
int int8,
boolean bool2,
int int9,
boolean bool3,
boolean bool4,
boolean bool5,
WorldBorder.class_5200 class_5200,
int int10,
int int11,
UUID uUID,
LinkedHashSet<String> linkedHashSet,
LinkedHashSet<String> linkedHashSet2,
Set<String> set,
Timer<MinecraftServer> timer,
CompoundTag compoundTag2,
CompoundTag compoundTag3,
LevelInfo levelInfo) |
|
LevelProperties(LevelInfo levelInfo) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatNameprivate static final Logger field_25029
private LevelInfo field_25030
private int spawnX
private int spawnY
private int spawnZ
private long time
private long timeOfDay
@Nullable private final com.mojang.datafixers.DataFixer dataFixer
private final int dataVersion
private boolean playerDataLoaded
@Nullable private CompoundTag playerData
private final int version
private int clearWeatherTime
private boolean raining
private int rainTime
private boolean thundering
private int thunderTime
private boolean initialized
private boolean difficultyLocked
private WorldBorder.class_5200 field_24193
private CompoundTag field_25031
@Nullable private CompoundTag customBossEvents
private int wanderingTraderSpawnDelay
private int wanderingTraderSpawnChance
private boolean modded
private final Timer<MinecraftServer> scheduledEvents
private LevelProperties(@Nullable com.mojang.datafixers.DataFixer dataFixer, int int2, @Nullable CompoundTag compoundTag, boolean bool, int int3, int int4, int int5, long long2, long long3, int int6, int int7, int int8, boolean bool2, int int9, boolean bool3, boolean bool4, boolean bool5, WorldBorder.class_5200 class_5200, int int10, int int11, @Nullable UUID uUID, LinkedHashSet<String> linkedHashSet, LinkedHashSet<String> linkedHashSet2, Set<String> set, Timer<MinecraftServer> timer, @Nullable CompoundTag compoundTag2, CompoundTag compoundTag3, LevelInfo levelInfo)
public LevelProperties(LevelInfo levelInfo)
public static LevelProperties method_29029(com.mojang.serialization.Dynamic<Tag> dynamic, com.mojang.datafixers.DataFixer dataFixer, int int2, @Nullable CompoundTag compoundTag, LevelInfo levelInfo, class_5315 class_5315)
public CompoundTag cloneWorldTag(@Nullable CompoundTag tag)
cloneWorldTag in interface class_5219private void updateProperties(CompoundTag levelTag, CompoundTag playerTag)
public 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 setSpawnX(int spawnX)
setSpawnX in interface class_5269public void setSpawnY(int spawnY)
setSpawnY in interface class_5269public void setSpawnZ(int spawnZ)
setSpawnZ in interface class_5269public void method_29034(long long2)
method_29034 in interface class_5268public void method_29035(long long2)
method_29035 in interface class_5268public void setSpawnPos(BlockPos pos)
setSpawnPos in interface class_5269public String getLevelName()
getLevelName in interface class_5219getLevelName in interface class_5268public int getVersion()
getVersion in interface class_5219public int getClearWeatherTime()
getClearWeatherTime in interface class_5268public void setClearWeatherTime(int clearWeatherTime)
setClearWeatherTime in interface class_5268public boolean isThundering()
isThundering in interface class_5217public void setThundering(boolean thundering)
setThundering in interface class_5268public int getThunderTime()
getThunderTime in interface class_5268public void setThunderTime(int thunderTime)
setThunderTime in interface class_5268public boolean isRaining()
isRaining in interface class_5217public void setRaining(boolean raining)
setRaining in interface class_5217public int getRainTime()
getRainTime in interface class_5268public void setRainTime(int rainTime)
setRainTime in interface class_5268public GameMode getGameMode()
getGameMode in interface class_5219getGameMode in interface class_5268public void setGameMode(GameMode gameMode)
setGameMode in interface class_5219setGameMode in interface class_5268public boolean isHardcore()
isHardcore in interface class_5217isHardcore in interface class_5219public boolean areCommandsAllowed()
areCommandsAllowed in interface class_5219areCommandsAllowed in interface class_5268public boolean isInitialized()
isInitialized in interface class_5268public void setInitialized(boolean initialized)
setInitialized in interface class_5268public GameRules getGameRules()
getGameRules in interface class_5217getGameRules in interface class_5219public WorldBorder.class_5200 method_27422()
method_27422 in interface class_5268public void method_27415(WorldBorder.class_5200 class_5200)
method_27415 in interface class_5268public 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 locked)
setDifficultyLocked in interface class_5219public Timer<MinecraftServer> getScheduledEvents()
getScheduledEvents in interface class_5268public void populateCrashReport(CrashReportSection crashReportSection)
populateCrashReport in interface class_5217populateCrashReport in interface class_5219populateCrashReport in interface class_5268public class_5285 method_28057()
method_28057 in interface class_5219public CompoundTag method_29036()
method_29036 in interface class_5219public void method_29037(CompoundTag compoundTag)
method_29037 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 tag)
setCustomBossEvents in interface class_5219public int getWanderingTraderSpawnDelay()
getWanderingTraderSpawnDelay in interface class_5268public void setWanderingTraderSpawnDelay(int wanderingTraderSpawnDelay)
setWanderingTraderSpawnDelay in interface class_5268public int getWanderingTraderSpawnChance()
getWanderingTraderSpawnChance in interface class_5268public void setWanderingTraderSpawnChance(int wanderingTraderSpawnChance)
setWanderingTraderSpawnChance in interface class_5268public void setWanderingTraderId(UUID uuid)
setWanderingTraderId in interface class_5268public void addServerBrand(String brand, boolean modded)
addServerBrand in interface class_5219public boolean isModded()
isModded in interface class_5219public Set<String> getServerBrands()
getServerBrands in interface class_5219public class_5268 method_27859()
method_27859 in interface class_5219@Environment(value=CLIENT) public LevelInfo getLevelInfo()
getLevelInfo in interface class_5219