net.minecraft.world.level.storage

public class PrimaryLevelData

implements ServerLevelData, WorldData

eck
net.minecraft.world.level.storage.PrimaryLevelData
net.minecraft.class_31
net.minecraft.world.level.LevelProperties
net.minecraft.src.C_2793_
net.minecraft.world.level.storage.WorldDataServer

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
e
LOGGER
field_25029
LOGGER
f_78442_
protected static final String
a
PLAYER
field_36349
PLAYER_KEY
f_202314_
protected static final String
b
WORLD_GEN_SETTINGS
field_31843
WORLD_GEN_SETTINGS_KEY
f_164940_
private LevelSettings
f
settings
field_25030
levelInfo
f_78443_
private final WorldOptions
g
worldOptions
field_25425
generatorOptions
f_244409_
private final PrimaryLevelData$SpecialWorldProperty
h
specialWorldProperty
field_40372
specialProperty
f_244368_
private final com.mojang.serialization.Lifecycle
i
worldGenSettingsLifecycle
field_25426
lifecycle
f_78445_
private int
j
xSpawn
field_151
spawnX
f_78446_
private int
k
ySpawn
field_167
spawnY
f_78447_
private int
l
zSpawn
field_182
spawnZ
f_78448_
private float
m
spawnAngle
field_26367
spawnAngle
f_78449_
private long
n
gameTime
field_189
time
f_78450_
private long
o
dayTime
field_198
timeOfDay
f_78451_
private final com.mojang.datafixers.DataFixer
p
fixerUpper
field_184
dataFixer
f_78452_
private final int
q
playerDataVersion
field_196
dataVersion
f_78453_
private boolean
r
upgradedPlayerTag
field_172
playerDataLoaded
f_78454_
private CompoundTag
s
loadedPlayerTag
field_170
playerData
f_78455_
private final int
t
version
field_158
version
f_78456_
private int
u
clearWeatherTime
field_176
clearWeatherTime
f_78457_
private boolean
v
raining
field_190
raining
f_78458_
private int
w
rainTime
field_192
rainTime
f_78459_
private boolean
x
thundering
field_168
thundering
f_78460_
private int
y
thunderTime
field_173
thunderTime
f_78461_
private boolean
z
initialized
field_185
initialized
f_78462_
private boolean
A
difficultyLocked
field_157
difficultyLocked
f_78463_
private WorldBorder$Settings
B
worldBorder
field_24193
worldBorder
f_78464_
private EndDragonFight$Data
C
endDragonFightData
field_25031
dragonFight
f_78465_
private CompoundTag
D
customBossEvents
field_156
customBossEvents
f_78466_
private int
E
wanderingTraderSpawnDelay
field_17736
wanderingTraderSpawnDelay
f_78467_
private int
F
wanderingTraderSpawnChance
field_17737
wanderingTraderSpawnChance
f_78437_
private UUID
G
wanderingTraderId
field_17738
wanderingTraderId
f_78438_
private final Set<String>
H
knownServerBrands
field_21837
serverBrands
f_78439_
private boolean
I
wasModded
field_21838
modded
f_78440_
private final Set<String>
J
removedFeatureFlags
field_43352
removedFeatures
f_276525_
private final TimerQueue<MinecraftServer>
K
scheduledEvents
field_191
scheduledEvents
f_78441_

Constructor summary

ModifierConstructor
private (com.mojang.datafixers.DataFixer dataFixer, int dataVersion, CompoundTag playerData, boolean modded, int spawnX, int spawnY, int spawnZ, float spawnAngle, long time, long timeOfDay, int version, int clearWeatherTime, int rainTime, boolean raining, int thunderTime, boolean thundering, boolean initialized, boolean difficultyLocked, 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, com.mojang.datafixers.DataFixer arg1, int arg2, qw arg3, cpz arg4, eci arg5, eck$a arg6, dlq arg7, com.mojang.serialization.Lifecycle arg8)
parse(com.mojang.serialization.Dynamic<T> arg0, com.mojang.datafixers.DataFixer arg1, int arg2, CompoundTag arg3, LevelSettings arg4, LevelVersion arg5, PrimaryLevelData$SpecialWorldProperty arg6, WorldOptions arg7, com.mojang.serialization.Lifecycle arg8)
method_29029(com.mojang.serialization.Dynamic<T> arg0, com.mojang.datafixers.DataFixer arg1, int arg2, class_2487 arg3, class_1940 arg4, class_5315 arg5, class_31$class_7729 arg6, class_5285 arg7, com.mojang.serialization.Lifecycle arg8)
readProperties(com.mojang.serialization.Dynamic<T> dynamic, com.mojang.datafixers.DataFixer dataFixer, int dataVersion, NbtCompound playerData, LevelInfo levelInfo, SaveVersionInfo saveVersionInfo, LevelProperties$SpecialProperty specialProperty, GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle)
m_78530_(com.mojang.serialization.Dynamic<T> p_78531_, com.mojang.datafixers.DataFixer p_78532_, int p_78533_, C_4917_ p_78534_, C_1602_ p_78535_, C_2790_ p_78536_, C_2793_$C_243494_ p_250651_, C_243453_ p_251864_, com.mojang.serialization.Lifecycle p_78538_)
public CompoundTag
a(hr arg0, qw arg1)
createTag(RegistryAccess arg0, CompoundTag arg1)
method_163(class_5455 arg0, class_2487 arg1)
cloneWorldNbt(DynamicRegistryManager arg0, NbtCompound arg1)
m_6626_(C_4706_ p_78544_, C_4917_ arg1)
private void
a(hr arg0, qw arg1, qw 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)
m_78545_(C_4706_ p_78547_, C_4917_ p_78548_, C_4917_ arg2)
private static ListTag
a(Set<String> arg0)
stringCollectionToTag(Set<String> arg0)
method_49902(Set<String> arg0)
createStringList(Set<String> strings)
m_277055_(Set<String> p_277880_)
public int
a()
getXSpawn()
method_215()
getSpawnX()
m_6789_()
public int
b()
getYSpawn()
method_144()
getSpawnY()
m_6527_()
public int
c()
getZSpawn()
method_166()
getSpawnZ()
m_6526_()
public float
d()
getSpawnAngle()
method_30656()
getSpawnAngle()
m_6790_()
public long
e()
getGameTime()
method_188()
getTime()
m_6793_()
public long
f()
getDayTime()
method_217()
getTimeOfDay()
m_6792_()
private void
N()
updatePlayerTag()
method_185()
loadPlayerData()
m_78512_()
public CompoundTag
y()
getLoadedPlayerTag()
method_226()
getPlayerData()
m_6614_()
public void
b(int arg0)
setXSpawn(int arg0)
method_27416(int arg0)
setSpawnX(int arg0)
m_6395_(int arg0)
public void
c(int arg0)
setYSpawn(int arg0)
method_27417(int arg0)
setSpawnY(int arg0)
m_6397_(int arg0)
public void
d(int arg0)
setZSpawn(int arg0)
method_27419(int arg0)
setSpawnZ(int arg0)
m_6400_(int arg0)
public void
a(float arg0)
setSpawnAngle(float arg0)
method_30657(float arg0)
setSpawnAngle(float arg0)
m_7113_(float arg0)
public void
a(long arg0)
setGameTime(long arg0)
method_29034(long arg0)
setTime(long arg0)
m_6253_(long arg0)
public void
b(long arg0)
setDayTime(long arg0)
method_29035(long arg0)
setTimeOfDay(long arg0)
m_6247_(long arg0)
public void
a(gw arg0, float arg1)
setSpawn(BlockPos arg0, float arg1)
method_187(class_2338 arg0, float arg1)
setSpawnPos(BlockPos arg0, float arg1)
m_7250_(C_4675_ p_78541_, float arg1)
public String
g()
getLevelName()
method_150()
getLevelName()
m_5462_()
public int
z()
getVersion()
method_168()
getVersion()
m_6517_()
public int
h()
getClearWeatherTime()
method_155()
getClearWeatherTime()
m_6537_()
public void
a(int arg0)
setClearWeatherTime(int arg0)
method_167(int arg0)
setClearWeatherTime(int arg0)
m_6393_(int arg0)
public boolean
i()
isThundering()
method_203()
isThundering()
m_6534_()
public void
a(boolean arg0)
setThundering(boolean arg0)
method_147(boolean arg0)
setThundering(boolean arg0)
m_5557_(boolean arg0)
public int
j()
getThunderTime()
method_145()
getThunderTime()
m_6558_()
public void
e(int arg0)
setThunderTime(int arg0)
method_173(int arg0)
setThunderTime(int arg0)
m_6398_(int arg0)
public boolean
k()
isRaining()
method_156()
isRaining()
m_6533_()
public void
b(boolean arg0)
setRaining(boolean arg0)
method_157(boolean arg0)
setRaining(boolean arg0)
m_5565_(boolean arg0)
public int
l()
getRainTime()
method_190()
getRainTime()
m_6531_()
public void
f(int arg0)
setRainTime(int arg0)
method_164(int arg0)
setRainTime(int arg0)
m_6399_(int arg0)
public GameType
m()
getGameType()
method_210()
getGameMode()
m_5464_()
public void
a(cps arg0)
setGameType(GameType arg0)
method_193(class_1934 arg0)
setGameMode(GameMode arg0)
m_5458_(C_1593_ arg0)
public boolean
n()
isHardcore()
method_152()
isHardcore()
m_5466_()
public boolean
o()
getAllowCommands()
method_194()
areCommandsAllowed()
m_5468_()
public boolean
p()
isInitialized()
method_222()
isInitialized()
m_6535_()
public void
c(boolean arg0)
setInitialized(boolean arg0)
method_223(boolean arg0)
setInitialized(boolean arg0)
m_5555_(boolean arg0)
public GameRules
q()
getGameRules()
method_146()
getGameRules()
m_5470_()
public WorldBorder$Settings
r()
getWorldBorder()
method_27422()
getWorldBorder()
m_5813_()
public void
a(dha$c arg0)
setWorldBorder(WorldBorder$Settings arg0)
method_27415(class_2784$class_5200 arg0)
setWorldBorder(WorldBorder$Properties arg0)
m_7831_(C_2110_$C_2114_ arg0)
public Difficulty
s()
getDifficulty()
method_207()
getDifficulty()
m_5472_()
public void
a(bgv arg0)
setDifficulty(Difficulty arg0)
method_208(class_1267 arg0)
setDifficulty(Difficulty arg0)
m_6166_(C_468_ arg0)
public boolean
t()
isDifficultyLocked()
method_197()
isDifficultyLocked()
m_5474_()
public void
d(boolean arg0)
setDifficultyLocked(boolean arg0)
method_186(boolean arg0)
setDifficultyLocked(boolean arg0)
m_5560_(boolean arg0)
public TimerQueue<MinecraftServer>
u()
getScheduledEvents()
method_143()
getScheduledEvents()
m_7540_()
public void
a(p arg0, cpx arg1)
fillCrashReportCategory(CrashReportCategory arg0, LevelHeightAccessor arg1)
method_151(class_129 arg0, class_5539 arg1)
populateCrashReport(CrashReportSection arg0, HeightLimitView arg1)
m_142471_(C_4909_ p_164973_, C_141183_ arg1)
public WorldOptions
A()
worldGenOptions()
method_28057()
getGeneratorOptions()
m_246337_()
public boolean
B()
isFlatWorld()
method_45555()
isFlatWorld()
m_5961_()
public boolean
C()
isDebugWorld()
method_45556()
isDebugWorld()
m_7513_()
public com.mojang.serialization.Lifecycle
D()
worldGenSettingsLifecycle()
method_29588()
getLifecycle()
m_5754_()
public EndDragonFight$Data
E()
endDragonFightData()
method_29036()
getDragonFight()
m_6564_()
public void
a(div$a arg0)
setEndDragonFightData(EndDragonFight$Data arg0)
method_29037(class_2881$class_8576 arg0)
setDragonFight(EnderDragonFight$Data arg0)
m_5915_(C_2183_$C_289700_ arg0)
public WorldDataConfiguration
F()
getDataConfiguration()
method_29589()
getDataConfiguration()
m_6645_()
public void
a(cqo arg0)
setDataConfiguration(WorldDataConfiguration arg0)
method_29590(class_7712 arg0)
updateLevelInfo(DataConfiguration arg0)
m_245843_(C_243530_ arg0)
public CompoundTag
G()
getCustomBossEvents()
method_228()
getCustomBossEvents()
m_6587_()
public void
a(qw arg0)
setCustomBossEvents(CompoundTag arg0)
method_221(class_2487 arg0)
setCustomBossEvents(NbtCompound arg0)
m_5917_(C_4917_ arg0)
public int
v()
getWanderingTraderSpawnDelay()
method_18038()
getWanderingTraderSpawnDelay()
m_6530_()
public void
g(int arg0)
setWanderingTraderSpawnDelay(int arg0)
method_18041(int arg0)
setWanderingTraderSpawnDelay(int arg0)
m_6391_(int arg0)
public int
w()
getWanderingTraderSpawnChance()
method_18039()
getWanderingTraderSpawnChance()
m_6528_()
public void
h(int arg0)
setWanderingTraderSpawnChance(int arg0)
method_18042(int arg0)
setWanderingTraderSpawnChance(int arg0)
m_6387_(int arg0)
public UUID
x()
getWanderingTraderId()
method_35506()
getWanderingTraderId()
m_142403_()
public void
a(UUID arg0)
setWanderingTraderId(UUID arg0)
method_18040(UUID arg0)
setWanderingTraderId(UUID arg0)
m_8115_(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)
m_7955_(String p_78551_, boolean arg1)
public boolean
H()
wasModded()
method_27431()
isModded()
m_6565_()
public Set<String>
I()
getKnownServerBrands()
method_27432()
getServerBrands()
m_6161_()
public Set<String>
J()
getRemovedFeatureFlags()
method_49900()
getRemovedFeatures()
m_276907_()
public ServerLevelData
K()
overworldData()
method_27859()
getMainWorldProperties()
m_5996_()
public LevelSettings
L()
getLevelSettings()
method_27433()
getLevelInfo()
m_5926_()