net.minecraft.world.level.storage

public class PrimaryLevelData

implements ServerLevelData, WorldData

fme
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
f
LOGGER
field_25029
LOGGER
public static final String
a
LEVEL_NAME
field_46838
LEVEL_NAME_KEY
protected static final String
b
PLAYER
field_36349
PLAYER_KEY
protected static final String
c
WORLD_GEN_SETTINGS
field_31843
WORLD_GEN_SETTINGS_KEY
private LevelSettings
g
settings
field_25030
levelInfo
private final WorldOptions
h
worldOptions
field_25425
generatorOptions
private final PrimaryLevelData$SpecialWorldProperty
i
specialWorldProperty
field_40372
specialProperty
private final com.mojang.serialization.Lifecycle
j
worldGenSettingsLifecycle
field_25426
lifecycle
private LevelData$RespawnData
k
respawnData
field_63052
spawnPoint
private long
l
gameTime
field_189
time
private long
m
dayTime
field_198
timeOfDay
private final CompoundTag
n
loadedPlayerTag
field_170
playerData
private final int
o
version
field_158
version
private int
p
clearWeatherTime
field_176
clearWeatherTime
private boolean
q
raining
field_190
raining
private int
r
rainTime
field_192
rainTime
private boolean
s
thundering
field_168
thundering
private int
t
thunderTime
field_173
thunderTime
private boolean
u
initialized
field_185
initialized
private boolean
v
difficultyLocked
field_157
difficultyLocked
private Optional<WorldBorder$Settings>
w
legacyWorldBorderSettings
field_24193
worldBorder
private EndDragonFight$Data
x
endDragonFightData
field_25031
dragonFight
private CompoundTag
y
customBossEvents
field_156
customBossEvents
private int
z
wanderingTraderSpawnDelay
field_17736
wanderingTraderSpawnDelay
private int
A
wanderingTraderSpawnChance
field_17737
wanderingTraderSpawnChance
private UUID
B
wanderingTraderId
field_17738
wanderingTraderId
private final Set<String>
C
knownServerBrands
field_21837
serverBrands
private boolean
D
wasModded
field_21838
modded
private final Set<String>
E
removedFeatureFlags
field_43352
removedFeatures
private final TimerQueue<MinecraftServer>
F
scheduledEvents
field_191
scheduledEvents

Constructor summary

ModifierConstructor
private (CompoundTag playerData, boolean modded, LevelData$RespawnData spawnPoint, long time, long timeOfDay, int version, int clearWeatherTime, int rainTime, boolean raining, int thunderTime, boolean thundering, boolean initialized, boolean difficultyLocked, Optional<WorldBorder$Settings> worldBorder, int wanderingTraderSpawnDelay, int wanderingTraderSpawnChance, UUID wanderingTraderId, Set<String> serverBrands, Set<String> removedFeatures, TimerQueue<MinecraftServer> scheduledEvents, CompoundTag customBossEvents, EndDragonFight$Data dragonFight, LevelSettings levelInfo, WorldOptions generatorOptions, PrimaryLevelData$SpecialWorldProperty specialProperty, com.mojang.serialization.Lifecycle lifecycle)
public (LevelSettings levelInfo, WorldOptions generatorOptions, PrimaryLevelData$SpecialWorldProperty specialProperty, com.mojang.serialization.Lifecycle lifecycle)

Method summary

Modifier and TypeMethod
public static <T> PrimaryLevelData
a(com.mojang.serialization.Dynamic<T> arg0, dvk arg1, fme$a arg2, eug arg3, com.mojang.serialization.Lifecycle arg4)
parse(com.mojang.serialization.Dynamic<T> arg0, LevelSettings arg1, PrimaryLevelData$SpecialWorldProperty arg2, WorldOptions arg3, com.mojang.serialization.Lifecycle arg4)
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 CompoundTag
a(jr arg0, uz arg1)
createTag(RegistryAccess arg0, CompoundTag arg1)
method_163(class_5455 arg0, class_2487 arg1)
cloneWorldNbt(DynamicRegistryManager arg0, NbtCompound arg1)
private void
a(jr arg0, uz arg1, uz arg2)
setTagData(RegistryAccess arg0, CompoundTag arg1, CompoundTag arg2)
method_158(class_5455 arg0, class_2487 arg1, class_2487 arg2)
updateProperties(DynamicRegistryManager registryManager, NbtCompound levelNbt, NbtCompound playerNbt)
private static ListTag
a(Set<String> arg0)
stringCollectionToTag(Set<String> arg0)
method_49902(Set<String> arg0)
createStringList(Set<String> strings)
public LevelData$RespawnData
a()
getRespawnData()
method_74893()
getSpawnPoint()
public long
b()
getGameTime()
method_188()
getTime()
public long
c()
getDayTime()
method_217()
getTimeOfDay()
public CompoundTag
v()
getLoadedPlayerTag()
method_226()
getPlayerData()
public void
a(long arg0)
setGameTime(long arg0)
method_29034(long arg0)
setTime(long arg0)
public void
b(long arg0)
setDayTime(long arg0)
method_29035(long arg0)
setTimeOfDay(long arg0)
public void
a(flw$a arg0)
setSpawn(LevelData$RespawnData arg0)
method_187(class_5217$class_12064 arg0)
setSpawnPoint(WorldProperties$SpawnPoint arg0)
public String
d()
getLevelName()
method_150()
getLevelName()
public int
w()
getVersion()
method_168()
getVersion()
public int
e()
getClearWeatherTime()
method_155()
getClearWeatherTime()
public void
a(int arg0)
setClearWeatherTime(int arg0)
method_167(int arg0)
setClearWeatherTime(int arg0)
public boolean
f()
isThundering()
method_203()
isThundering()
public void
a(boolean arg0)
setThundering(boolean arg0)
method_147(boolean arg0)
setThundering(boolean arg0)
public int
g()
getThunderTime()
method_145()
getThunderTime()
public void
b(int arg0)
setThunderTime(int arg0)
method_173(int arg0)
setThunderTime(int arg0)
public boolean
h()
isRaining()
method_156()
isRaining()
public void
b(boolean arg0)
setRaining(boolean arg0)
method_157(boolean arg0)
setRaining(boolean arg0)
public int
i()
getRainTime()
method_190()
getRainTime()
public void
c(int arg0)
setRainTime(int arg0)
method_164(int arg0)
setRainTime(int arg0)
public GameType
j()
getGameType()
method_210()
getGameMode()
public void
a(dvd arg0)
setGameType(GameType arg0)
method_193(class_1934 arg0)
setGameMode(GameMode arg0)
public boolean
k()
isHardcore()
method_152()
isHardcore()
public boolean
l()
isAllowCommands()
method_194()
areCommandsAllowed()
public boolean
m()
isInitialized()
method_222()
isInitialized()
public void
c(boolean arg0)
setInitialized(boolean arg0)
method_223(boolean arg0)
setInitialized(boolean arg0)
public GameRules
n()
getGameRules()
method_146()
getGameRules()
public Optional<WorldBorder$Settings>
o()
getLegacyWorldBorderSettings()
method_27422()
getWorldBorder()
public void
a(Optional<eos$c> arg0)
setLegacyWorldBorderSettings(Optional<WorldBorder$Settings> arg0)
method_27415(Optional<class_2784$class_5200> arg0)
setWorldBorder(Optional<WorldBorder$Properties> arg0)
public Difficulty
p()
getDifficulty()
method_207()
getDifficulty()
public void
a(ccx arg0)
setDifficulty(Difficulty arg0)
method_208(class_1267 arg0)
setDifficulty(Difficulty arg0)
public boolean
q()
isDifficultyLocked()
method_197()
isDifficultyLocked()
public void
d(boolean arg0)
setDifficultyLocked(boolean arg0)
method_186(boolean arg0)
setDifficultyLocked(boolean arg0)
public TimerQueue<MinecraftServer>
r()
getScheduledEvents()
method_143()
getScheduledEvents()
public void
a(n arg0, dvi arg1)
fillCrashReportCategory(CrashReportCategory arg0, LevelHeightAccessor arg1)
method_151(class_129 arg0, class_5539 arg1)
populateCrashReport(CrashReportSection arg0, HeightLimitView arg1)
public WorldOptions
x()
worldGenOptions()
method_28057()
getGeneratorOptions()
public boolean
y()
isFlatWorld()
method_45555()
isFlatWorld()
public boolean
z()
isDebugWorld()
method_45556()
isDebugWorld()
public com.mojang.serialization.Lifecycle
A()
worldGenSettingsLifecycle()
method_29588()
getLifecycle()
public EndDragonFight$Data
B()
endDragonFightData()
method_29036()
getDragonFight()
public void
a(erc$a arg0)
setEndDragonFightData(EndDragonFight$Data arg0)
method_29037(class_2881$class_8576 arg0)
setDragonFight(EnderDragonFight$Data arg0)
public WorldDataConfiguration
C()
getDataConfiguration()
method_29589()
getDataConfiguration()
public void
a(dwe arg0)
setDataConfiguration(WorldDataConfiguration arg0)
method_29590(class_7712 arg0)
updateLevelInfo(DataConfiguration arg0)
public CompoundTag
D()
getCustomBossEvents()
method_228()
getCustomBossEvents()
public void
a(uz arg0)
setCustomBossEvents(CompoundTag arg0)
method_221(class_2487 arg0)
setCustomBossEvents(NbtCompound arg0)
public int
s()
getWanderingTraderSpawnDelay()
method_18038()
getWanderingTraderSpawnDelay()
public void
d(int arg0)
setWanderingTraderSpawnDelay(int arg0)
method_18041(int arg0)
setWanderingTraderSpawnDelay(int arg0)
public int
t()
getWanderingTraderSpawnChance()
method_18039()
getWanderingTraderSpawnChance()
public void
e(int arg0)
setWanderingTraderSpawnChance(int arg0)
method_18042(int arg0)
setWanderingTraderSpawnChance(int arg0)
public UUID
u()
getWanderingTraderId()
method_35506()
getWanderingTraderId()
public void
a(UUID arg0)
setWanderingTraderId(UUID arg0)
method_18040(UUID arg0)
setWanderingTraderId(UUID arg0)
public void
a(String arg0, boolean arg1)
setModdedInfo(String arg0, boolean arg1)
method_24285(String arg0, boolean arg1)
addServerBrand(String arg0, boolean arg1)
public boolean
E()
wasModded()
method_27431()
isModded()
public Set<String>
F()
getKnownServerBrands()
method_27432()
getServerBrands()
public Set<String>
G()
getRemovedFeatureFlags()
method_49900()
getRemovedFeatures()
public ServerLevelData
H()
overworldData()
method_27859()
getMainWorldProperties()
public LevelSettings
I()
getLevelSettings()
method_27433()
getLevelInfo()