net.minecraft.world.level

public class LevelProperties

implements ServerWorldProperties, SaveProperties

net.minecraft.world.level.storage.PrimaryLevelData
net.minecraft.class_31
net.minecraft.world.level.LevelProperties

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_25029
LOGGER
public static final String
LEVEL_NAME
field_46838
LEVEL_NAME_KEY
protected static final String
PLAYER
field_36349
PLAYER_KEY
protected static final String
WORLD_GEN_SETTINGS
field_31843
WORLD_GEN_SETTINGS_KEY
private LevelInfo
settings
field_25030
levelInfo
private final GeneratorOptions
worldOptions
field_25425
generatorOptions
private final LevelProperties$SpecialProperty
specialWorldProperty
field_40372
specialProperty
private final com.mojang.serialization.Lifecycle
worldGenSettingsLifecycle
field_25426
lifecycle
private WorldProperties$SpawnPoint
respawnData
field_63052
spawnPoint
private long
gameTime
field_189
time
private long
dayTime
field_198
timeOfDay
private final NbtCompound
loadedPlayerTag
field_170
playerData
private final int
version
field_158
version
private int
clearWeatherTime
field_176
clearWeatherTime
private boolean
raining
field_190
raining
private int
rainTime
field_192
rainTime
private boolean
thundering
field_168
thundering
private int
thunderTime
field_173
thunderTime
private boolean
initialized
field_185
initialized
private boolean
difficultyLocked
field_157
difficultyLocked
private Optional<WorldBorder$Properties>
legacyWorldBorderSettings
field_24193
worldBorder
private EnderDragonFight$Data
endDragonFightData
field_25031
dragonFight
private NbtCompound
customBossEvents
field_156
customBossEvents
private int
wanderingTraderSpawnDelay
field_17736
wanderingTraderSpawnDelay
private int
wanderingTraderSpawnChance
field_17737
wanderingTraderSpawnChance
private UUID
wanderingTraderId
field_17738
wanderingTraderId
private final Set<String>
knownServerBrands
field_21837
serverBrands
private boolean
wasModded
field_21838
modded
private final Set<String>
removedFeatureFlags
field_43352
removedFeatures
private final Timer<MinecraftServer>
scheduledEvents
field_191
scheduledEvents

Constructor summary

ModifierConstructor
private (NbtCompound playerData, boolean modded, WorldProperties$SpawnPoint spawnPoint, long time, long timeOfDay, int version, int clearWeatherTime, int rainTime, boolean raining, int thunderTime, boolean thundering, boolean initialized, boolean difficultyLocked, Optional<WorldBorder$Properties> worldBorder, int wanderingTraderSpawnDelay, int wanderingTraderSpawnChance, UUID wanderingTraderId, Set<String> serverBrands, Set<String> removedFeatures, Timer<MinecraftServer> scheduledEvents, NbtCompound customBossEvents, EnderDragonFight$Data dragonFight, LevelInfo levelInfo, GeneratorOptions generatorOptions, LevelProperties$SpecialProperty specialProperty, com.mojang.serialization.Lifecycle lifecycle)
public (LevelInfo levelInfo, GeneratorOptions generatorOptions, LevelProperties$SpecialProperty specialProperty, com.mojang.serialization.Lifecycle lifecycle)

Method summary

Modifier and TypeMethod
public static <T> LevelProperties
parse(com.mojang.serialization.Dynamic<T> input, LevelSettings settings, PrimaryLevelData$SpecialWorldProperty specialWorldProperty, WorldOptions worldOptions, com.mojang.serialization.Lifecycle worldGenSettingsLifecycle)
method_29029(com.mojang.serialization.Dynamic<T> arg0, class_1940 arg1, class_31$class_7729 arg2, class_5285 arg3, com.mojang.serialization.Lifecycle arg4)
readProperties(com.mojang.serialization.Dynamic<T> dynamic, LevelInfo info, LevelProperties$SpecialProperty specialProperty, GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle)
public NbtCompound
createTag(RegistryAccess registryAccess, CompoundTag playerData)
method_163(class_5455 arg0, class_2487 arg1)
cloneWorldNbt(DynamicRegistryManager arg0, NbtCompound arg1)
private void
setTagData(RegistryAccess registryAccess, CompoundTag tag, CompoundTag playerTag)
method_158(class_5455 arg0, class_2487 arg1, class_2487 arg2)
updateProperties(DynamicRegistryManager registryManager, NbtCompound levelNbt, NbtCompound playerNbt)
private static NbtList
stringCollectionToTag(Set<String> values)
method_49902(Set<String> arg0)
createStringList(Set<String> strings)
public WorldProperties$SpawnPoint
getRespawnData()
method_74893()
getSpawnPoint()
public long
getGameTime()
method_188()
getTime()
public long
getDayTime()
method_217()
getTimeOfDay()
public NbtCompound
getLoadedPlayerTag()
method_226()
getPlayerData()
public void
setGameTime(long time)
method_29034(long arg0)
setTime(long arg0)
public void
setDayTime(long time)
method_29035(long arg0)
setTimeOfDay(long arg0)
public void
setSpawn(LevelData$RespawnData respawnData)
method_187(class_5217$class_12064 arg0)
setSpawnPoint(WorldProperties$SpawnPoint arg0)
public String
getLevelName()
method_150()
getLevelName()
public int
getVersion()
method_168()
getVersion()
public int
getClearWeatherTime()
method_155()
getClearWeatherTime()
public void
setClearWeatherTime(int clearWeatherTime)
method_167(int arg0)
setClearWeatherTime(int arg0)
public boolean
isThundering()
method_203()
isThundering()
public void
setThundering(boolean thundering)
method_147(boolean arg0)
setThundering(boolean arg0)
public int
getThunderTime()
method_145()
getThunderTime()
public void
setThunderTime(int thunderTime)
method_173(int arg0)
setThunderTime(int arg0)
public boolean
isRaining()
method_156()
isRaining()
public void
setRaining(boolean raining)
method_157(boolean arg0)
setRaining(boolean arg0)
public int
getRainTime()
method_190()
getRainTime()
public void
setRainTime(int rainTime)
method_164(int arg0)
setRainTime(int arg0)
public GameMode
getGameType()
method_210()
getGameMode()
public void
setGameType(GameType gameType)
method_193(class_1934 arg0)
setGameMode(GameMode arg0)
public boolean
isHardcore()
method_152()
isHardcore()
public boolean
isAllowCommands()
method_194()
areCommandsAllowed()
public boolean
isInitialized()
method_222()
isInitialized()
public void
setInitialized(boolean initialized)
method_223(boolean arg0)
setInitialized(boolean arg0)
public GameRules
getGameRules()
method_146()
getGameRules()
public Optional<WorldBorder$Properties>
getLegacyWorldBorderSettings()
method_27422()
getWorldBorder()
public void
setLegacyWorldBorderSettings(Optional<WorldBorder$Settings> settings)
method_27415(Optional<class_2784$class_5200> arg0)
setWorldBorder(Optional<WorldBorder$Properties> arg0)
public Difficulty
getDifficulty()
method_207()
getDifficulty()
public void
setDifficulty(Difficulty difficulty)
method_208(class_1267 arg0)
setDifficulty(Difficulty arg0)
public boolean
isDifficultyLocked()
method_197()
isDifficultyLocked()
public void
setDifficultyLocked(boolean difficultyLocked)
method_186(boolean arg0)
setDifficultyLocked(boolean arg0)
public Timer<MinecraftServer>
getScheduledEvents()
method_143()
getScheduledEvents()
public void
fillCrashReportCategory(CrashReportCategory category, LevelHeightAccessor levelHeightAccessor)
method_151(class_129 arg0, class_5539 arg1)
populateCrashReport(CrashReportSection arg0, HeightLimitView arg1)
public GeneratorOptions
worldGenOptions()
method_28057()
getGeneratorOptions()
public boolean
isFlatWorld()
method_45555()
isFlatWorld()
public boolean
isDebugWorld()
method_45556()
isDebugWorld()
public com.mojang.serialization.Lifecycle
worldGenSettingsLifecycle()
method_29588()
getLifecycle()
public EnderDragonFight$Data
endDragonFightData()
method_29036()
getDragonFight()
public void
setEndDragonFightData(EndDragonFight$Data data)
method_29037(class_2881$class_8576 arg0)
setDragonFight(EnderDragonFight$Data arg0)
public DataConfiguration
getDataConfiguration()
method_29589()
getDataConfiguration()
public void
setDataConfiguration(WorldDataConfiguration dataConfiguration)
method_29590(class_7712 arg0)
updateLevelInfo(DataConfiguration arg0)
public NbtCompound
getCustomBossEvents()
method_228()
getCustomBossEvents()
public void
setCustomBossEvents(CompoundTag customBossEvents)
method_221(class_2487 arg0)
setCustomBossEvents(NbtCompound arg0)
public int
getWanderingTraderSpawnDelay()
method_18038()
getWanderingTraderSpawnDelay()
public void
setWanderingTraderSpawnDelay(int wanderingTraderSpawnDelay)
method_18041(int arg0)
setWanderingTraderSpawnDelay(int arg0)
public int
getWanderingTraderSpawnChance()
method_18039()
getWanderingTraderSpawnChance()
public void
setWanderingTraderSpawnChance(int wanderingTraderSpawnChance)
method_18042(int arg0)
setWanderingTraderSpawnChance(int arg0)
public UUID
getWanderingTraderId()
method_35506()
getWanderingTraderId()
public void
setWanderingTraderId(UUID wanderingTraderId)
method_18040(UUID arg0)
setWanderingTraderId(UUID arg0)
public void
setModdedInfo(String serverBrand, boolean isModded)
method_24285(String arg0, boolean arg1)
addServerBrand(String arg0, boolean arg1)
public boolean
wasModded()
method_27431()
isModded()
public Set<String>
getKnownServerBrands()
method_27432()
getServerBrands()
public Set<String>
getRemovedFeatureFlags()
method_49900()
getRemovedFeatures()
public ServerWorldProperties
overworldData()
method_27859()
getMainWorldProperties()
public LevelInfo
getLevelSettings()
method_27433()
getLevelInfo()
private static void
lambda$setTagData$3(CompoundTag arg0, WorldBorder$Settings arg1)
method_74168(class_2487 arg0, class_2784$class_5200 arg1)
method_74168(NbtCompound arg0, WorldBorder$Properties worldBorder)
private static void
lambda$setTagData$2(CompoundTag arg0, Tag arg1)
method_29030(class_2487 arg0, class_2520 arg1)
method_29030(NbtCompound arg0, NbtElement worldGenSettings)
private static Stream
lambda$parse$1(com.mojang.serialization.Dynamic arg0)
method_29032(com.mojang.serialization.Dynamic arg0)
method_29032(com.mojang.serialization.Dynamic removedFeatures)
private static Stream
lambda$parse$0(com.mojang.serialization.Dynamic arg0)
method_49901(com.mojang.serialization.Dynamic arg0)
method_49901(com.mojang.serialization.Dynamic serverBrands)