Package net.minecraft.world.level
Class LevelProperties
java.lang.Object
net.minecraft.world.level.LevelProperties
- All Implemented Interfaces:
ServerWorldProperties,MutableWorldProperties,SaveProperties,WorldProperties
public class LevelProperties extends Object implements ServerWorldProperties, SaveProperties
-
Field Summary
Fields Modifier and Type Field Description private intclearWeatherTimeprivate CompoundTagcustomBossEventsprivate com.mojang.datafixers.DataFixerdataFixerprivate intdataVersionprivate booleandifficultyLockedprivate LevelInfofield_25030private CompoundTagfield_25031private GeneratorOptionsfield_25425private com.mojang.serialization.Lifecyclefield_25426private booleaninitializedprivate static LoggerLOGGERprivate booleanmoddedprivate CompoundTagplayerDataprivate booleanplayerDataLoadedprivate booleanrainingprivate intrainTimeprivate Timer<MinecraftServer>scheduledEventsprivate Set<String>serverBrandsprivate intspawnXprivate intspawnYprivate intspawnZprivate booleanthunderingprivate intthunderTimeprivate longtimeprivate longtimeOfDayprivate intversionprivate UUIDwanderingTraderIdprivate intwanderingTraderSpawnChanceprivate intwanderingTraderSpawnDelayprivate WorldBorder.PropertiesworldBorder -
Constructor Summary
Constructors Modifier Constructor Description privateLevelProperties(com.mojang.datafixers.DataFixer dataFixer, int dataVersion, CompoundTag playerData, boolean modded, int spawnX, int spawnY, int spawnZ, long time, long timeOfDay, int version, int clearWeatherTime, int rainTime, boolean raining, int thunderTime, boolean thundering, boolean initialized, boolean difficultyLocked, WorldBorder.Properties worldBorder, int wanderingTraderSpawnDelay, int wanderingTraderSpawnChance, UUID wanderingTraderId, LinkedHashSet<String> serverBrands, Timer<MinecraftServer> timer, CompoundTag compoundTag, CompoundTag compoundTag2, LevelInfo levelInfo, GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle)LevelProperties(LevelInfo levelInfo, GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle) -
Method Summary
-
Field Details
-
LOGGER
-
field_25030
-
field_25425
-
field_25426
private final com.mojang.serialization.Lifecycle field_25426 -
spawnX
private int spawnX -
spawnY
private int spawnY -
spawnZ
private int spawnZ -
time
private long time -
timeOfDay
private long timeOfDay -
dataFixer
-
dataVersion
private final int dataVersion -
playerDataLoaded
private boolean playerDataLoaded -
playerData
-
version
private final int version -
clearWeatherTime
private int clearWeatherTime -
raining
private boolean raining -
rainTime
private int rainTime -
thundering
private boolean thundering -
thunderTime
private int thunderTime -
initialized
private boolean initialized -
difficultyLocked
private boolean difficultyLocked -
worldBorder
-
field_25031
-
customBossEvents
-
wanderingTraderSpawnDelay
private int wanderingTraderSpawnDelay -
wanderingTraderSpawnChance
private int wanderingTraderSpawnChance -
wanderingTraderId
-
serverBrands
-
modded
private boolean modded -
scheduledEvents
-
-
Constructor Details
-
LevelProperties
private LevelProperties(@Nullable com.mojang.datafixers.DataFixer dataFixer, int dataVersion, @Nullable CompoundTag playerData, boolean modded, int spawnX, int spawnY, int spawnZ, long time, long timeOfDay, int version, int clearWeatherTime, int rainTime, boolean raining, int thunderTime, boolean thundering, boolean initialized, boolean difficultyLocked, WorldBorder.Properties worldBorder, int wanderingTraderSpawnDelay, int wanderingTraderSpawnChance, @Nullable UUID wanderingTraderId, LinkedHashSet<String> serverBrands, Timer<MinecraftServer> timer, @Nullable CompoundTag compoundTag, CompoundTag compoundTag2, LevelInfo levelInfo, GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle) -
LevelProperties
public LevelProperties(LevelInfo levelInfo, GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle)
-
-
Method Details
-
method_29029
public static LevelProperties method_29029(com.mojang.serialization.Dynamic<Tag> dynamic, com.mojang.datafixers.DataFixer dataFixer, int int2, @Nullable CompoundTag compoundTag, LevelInfo levelInfo, SaveVersionInfo saveVersionInfo, GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle) -
cloneWorldTag
public CompoundTag cloneWorldTag(RegistryTracker registryTracker, @Nullable CompoundTag compoundTag)- Specified by:
cloneWorldTagin interfaceSaveProperties
-
updateProperties
private void updateProperties(RegistryTracker registryTracker, CompoundTag compoundTag, @Nullable CompoundTag compoundTag2) -
getSpawnX
public int getSpawnX()- Specified by:
getSpawnXin interfaceWorldProperties
-
getSpawnY
public int getSpawnY()- Specified by:
getSpawnYin interfaceWorldProperties
-
getSpawnZ
public int getSpawnZ()- Specified by:
getSpawnZin interfaceWorldProperties
-
getTime
public long getTime()- Specified by:
getTimein interfaceWorldProperties
-
getTimeOfDay
public long getTimeOfDay()- Specified by:
getTimeOfDayin interfaceWorldProperties
-
loadPlayerData
private void loadPlayerData() -
getPlayerData
- Specified by:
getPlayerDatain interfaceSaveProperties
-
setSpawnX
public void setSpawnX(int spawnX)- Specified by:
setSpawnXin interfaceMutableWorldProperties
-
setSpawnY
public void setSpawnY(int spawnY)- Specified by:
setSpawnYin interfaceMutableWorldProperties
-
setSpawnZ
public void setSpawnZ(int spawnZ)- Specified by:
setSpawnZin interfaceMutableWorldProperties
-
method_29034
public void method_29034(long long2)- Specified by:
method_29034in interfaceServerWorldProperties
-
method_29035
public void method_29035(long long2)- Specified by:
method_29035in interfaceServerWorldProperties
-
setSpawnPos
- Specified by:
setSpawnPosin interfaceMutableWorldProperties
-
getLevelName
- Specified by:
getLevelNamein interfaceSaveProperties- Specified by:
getLevelNamein interfaceServerWorldProperties
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceSaveProperties
-
getClearWeatherTime
public int getClearWeatherTime()- Specified by:
getClearWeatherTimein interfaceServerWorldProperties
-
setClearWeatherTime
public void setClearWeatherTime(int clearWeatherTime)- Specified by:
setClearWeatherTimein interfaceServerWorldProperties
-
isThundering
public boolean isThundering()- Specified by:
isThunderingin interfaceWorldProperties
-
setThundering
public void setThundering(boolean thundering)- Specified by:
setThunderingin interfaceServerWorldProperties
-
getThunderTime
public int getThunderTime()- Specified by:
getThunderTimein interfaceServerWorldProperties
-
setThunderTime
public void setThunderTime(int thunderTime)- Specified by:
setThunderTimein interfaceServerWorldProperties
-
isRaining
public boolean isRaining()- Specified by:
isRainingin interfaceWorldProperties
-
setRaining
public void setRaining(boolean raining)- Specified by:
setRainingin interfaceWorldProperties
-
getRainTime
public int getRainTime()- Specified by:
getRainTimein interfaceServerWorldProperties
-
setRainTime
public void setRainTime(int rainTime)- Specified by:
setRainTimein interfaceServerWorldProperties
-
getGameMode
- Specified by:
getGameModein interfaceSaveProperties- Specified by:
getGameModein interfaceServerWorldProperties
-
setGameMode
- Specified by:
setGameModein interfaceSaveProperties- Specified by:
setGameModein interfaceServerWorldProperties
-
isHardcore
public boolean isHardcore()- Specified by:
isHardcorein interfaceSaveProperties- Specified by:
isHardcorein interfaceWorldProperties
-
areCommandsAllowed
public boolean areCommandsAllowed()- Specified by:
areCommandsAllowedin interfaceSaveProperties- Specified by:
areCommandsAllowedin interfaceServerWorldProperties
-
isInitialized
public boolean isInitialized()- Specified by:
isInitializedin interfaceServerWorldProperties
-
setInitialized
public void setInitialized(boolean initialized)- Specified by:
setInitializedin interfaceServerWorldProperties
-
getGameRules
- Specified by:
getGameRulesin interfaceSaveProperties- Specified by:
getGameRulesin interfaceWorldProperties
-
getWorldBorder
- Specified by:
getWorldBorderin interfaceServerWorldProperties
-
setWorldBorder
- Specified by:
setWorldBorderin interfaceServerWorldProperties
-
getDifficulty
- Specified by:
getDifficultyin interfaceSaveProperties- Specified by:
getDifficultyin interfaceWorldProperties
-
setDifficulty
- Specified by:
setDifficultyin interfaceSaveProperties
-
isDifficultyLocked
public boolean isDifficultyLocked()- Specified by:
isDifficultyLockedin interfaceSaveProperties- Specified by:
isDifficultyLockedin interfaceWorldProperties
-
setDifficultyLocked
public void setDifficultyLocked(boolean locked)- Specified by:
setDifficultyLockedin interfaceSaveProperties
-
getScheduledEvents
- Specified by:
getScheduledEventsin interfaceServerWorldProperties
-
populateCrashReport
- Specified by:
populateCrashReportin interfaceSaveProperties- Specified by:
populateCrashReportin interfaceServerWorldProperties- Specified by:
populateCrashReportin interfaceWorldProperties
-
getGeneratorOptions
- Specified by:
getGeneratorOptionsin interfaceSaveProperties
-
method_29588
@Environment(CLIENT) public com.mojang.serialization.Lifecycle method_29588()- Specified by:
method_29588in interfaceSaveProperties
-
method_29036
- Specified by:
method_29036in interfaceSaveProperties
-
method_29037
- Specified by:
method_29037in interfaceSaveProperties
-
method_29589
- Specified by:
method_29589in interfaceSaveProperties
-
method_29590
- Specified by:
method_29590in interfaceSaveProperties
-
getCustomBossEvents
- Specified by:
getCustomBossEventsin interfaceSaveProperties
-
setCustomBossEvents
- Specified by:
setCustomBossEventsin interfaceSaveProperties
-
getWanderingTraderSpawnDelay
public int getWanderingTraderSpawnDelay()- Specified by:
getWanderingTraderSpawnDelayin interfaceServerWorldProperties
-
setWanderingTraderSpawnDelay
public void setWanderingTraderSpawnDelay(int wanderingTraderSpawnDelay)- Specified by:
setWanderingTraderSpawnDelayin interfaceServerWorldProperties
-
getWanderingTraderSpawnChance
public int getWanderingTraderSpawnChance()- Specified by:
getWanderingTraderSpawnChancein interfaceServerWorldProperties
-
setWanderingTraderSpawnChance
public void setWanderingTraderSpawnChance(int wanderingTraderSpawnChance)- Specified by:
setWanderingTraderSpawnChancein interfaceServerWorldProperties
-
setWanderingTraderId
- Specified by:
setWanderingTraderIdin interfaceServerWorldProperties
-
addServerBrand
- Specified by:
addServerBrandin interfaceSaveProperties
-
isModded
public boolean isModded()- Specified by:
isModdedin interfaceSaveProperties
-
getServerBrands
- Specified by:
getServerBrandsin interfaceSaveProperties
-
getMainWorldProperties
- Specified by:
getMainWorldPropertiesin interfaceSaveProperties
-
getLevelInfo
- Specified by:
getLevelInfoin interfaceSaveProperties
-