net.minecraft.world.level.storage

public class PrimaryLevelData

implements ServerLevelData, WorldData

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

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 BlockPos
k
spawnPos
field_48380
spawnPos
private float
l
spawnAngle
field_26367
spawnAngle
private long
m
gameTime
field_189
time
private long
n
dayTime
field_198
timeOfDay
private final CompoundTag
o
loadedPlayerTag
field_170
playerData
private final int
p
version
field_158
version
private int
q
clearWeatherTime
field_176
clearWeatherTime
private boolean
r
raining
field_190
raining
private int
s
rainTime
field_192
rainTime
private boolean
t
thundering
field_168
thundering
private int
u
thunderTime
field_173
thunderTime
private boolean
v
initialized
field_185
initialized
private boolean
w
difficultyLocked
field_157
difficultyLocked
private WorldBorder$Settings
x
worldBorder
field_24193
worldBorder
private EndDragonFight$Data
y
endDragonFightData
field_25031
dragonFight
private CompoundTag
z
customBossEvents
field_156
customBossEvents
private int
A
wanderingTraderSpawnDelay
field_17736
wanderingTraderSpawnDelay
private int
B
wanderingTraderSpawnChance
field_17737
wanderingTraderSpawnChance
private UUID
C
wanderingTraderId
field_17738
wanderingTraderId
private final Set<String>
D
knownServerBrands
field_21837
serverBrands
private boolean
E
wasModded
field_21838
modded
private final Set<String>
F
removedFeatureFlags
field_43352
removedFeatures
private final TimerQueue<MinecraftServer>
G
scheduledEvents
field_191
scheduledEvents

Constructor summary

ModifierConstructor
private (CompoundTag playerData, boolean modded, BlockPos spawnPos, 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, dgn arg1, evk$a arg2, edr 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(kf arg0, tq arg1)
createTag(RegistryAccess arg0, CompoundTag arg1)
method_163(class_5455 arg0, class_2487 arg1)
cloneWorldNbt(DynamicRegistryManager arg0, NbtCompound arg1)
private void
a(kf arg0, tq arg1, tq 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 BlockPos
a()
getSpawnPos()
method_56126()
getSpawnPos()
public float
b()
getSpawnAngle()
method_30656()
getSpawnAngle()
public long
c()
getGameTime()
method_188()
getTime()
public long
d()
getDayTime()
method_217()
getTimeOfDay()
public CompoundTag
w()
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(ji arg0, float arg1)
setSpawn(BlockPos arg0, float arg1)
method_187(class_2338 arg0, float arg1)
setSpawnPos(BlockPos arg0, float arg1)
public String
e()
getLevelName()
method_150()
getLevelName()
public int
x()
getVersion()
method_168()
getVersion()
public int
f()
getClearWeatherTime()
method_155()
getClearWeatherTime()
public void
a(int arg0)
setClearWeatherTime(int arg0)
method_167(int arg0)
setClearWeatherTime(int arg0)
public boolean
g()
isThundering()
method_203()
isThundering()
public void
a(boolean arg0)
setThundering(boolean arg0)
method_147(boolean arg0)
setThundering(boolean arg0)
public int
h()
getThunderTime()
method_145()
getThunderTime()
public void
b(int arg0)
setThunderTime(int arg0)
method_173(int arg0)
setThunderTime(int arg0)
public boolean
i()
isRaining()
method_156()
isRaining()
public void
b(boolean arg0)
setRaining(boolean arg0)
method_157(boolean arg0)
setRaining(boolean arg0)
public int
j()
getRainTime()
method_190()
getRainTime()
public void
c(int arg0)
setRainTime(int arg0)
method_164(int arg0)
setRainTime(int arg0)
public GameType
k()
getGameType()
method_210()
getGameMode()
public void
a(dgg arg0)
setGameType(GameType arg0)
method_193(class_1934 arg0)
setGameMode(GameMode arg0)
public boolean
l()
isHardcore()
method_152()
isHardcore()
public boolean
m()
isAllowCommands()
method_194()
areCommandsAllowed()
public boolean
n()
isInitialized()
method_222()
isInitialized()
public void
c(boolean arg0)
setInitialized(boolean arg0)
method_223(boolean arg0)
setInitialized(boolean arg0)
public GameRules
o()
getGameRules()
method_146()
getGameRules()
public WorldBorder$Settings
p()
getWorldBorder()
method_27422()
getWorldBorder()
public void
a(dyo$c arg0)
setWorldBorder(WorldBorder$Settings arg0)
method_27415(class_2784$class_5200 arg0)
setWorldBorder(WorldBorder$Properties arg0)
public Difficulty
q()
getDifficulty()
method_207()
getDifficulty()
public void
a(bsi arg0)
setDifficulty(Difficulty arg0)
method_208(class_1267 arg0)
setDifficulty(Difficulty arg0)
public boolean
r()
isDifficultyLocked()
method_197()
isDifficultyLocked()
public void
d(boolean arg0)
setDifficultyLocked(boolean arg0)
method_186(boolean arg0)
setDifficultyLocked(boolean arg0)
public TimerQueue<MinecraftServer>
s()
getScheduledEvents()
method_143()
getScheduledEvents()
public void
a(p arg0, dgl arg1)
fillCrashReportCategory(CrashReportCategory arg0, LevelHeightAccessor arg1)
method_151(class_129 arg0, class_5539 arg1)
populateCrashReport(CrashReportSection arg0, HeightLimitView arg1)
public WorldOptions
y()
worldGenOptions()
method_28057()
getGeneratorOptions()
public boolean
z()
isFlatWorld()
method_45555()
isFlatWorld()
public boolean
A()
isDebugWorld()
method_45556()
isDebugWorld()
public com.mojang.serialization.Lifecycle
B()
worldGenSettingsLifecycle()
method_29588()
getLifecycle()
public EndDragonFight$Data
C()
endDragonFightData()
method_29036()
getDragonFight()
public void
a(eaw$a arg0)
setEndDragonFightData(EndDragonFight$Data arg0)
method_29037(class_2881$class_8576 arg0)
setDragonFight(EnderDragonFight$Data arg0)
public WorldDataConfiguration
D()
getDataConfiguration()
method_29589()
getDataConfiguration()
public void
a(dhg arg0)
setDataConfiguration(WorldDataConfiguration arg0)
method_29590(class_7712 arg0)
updateLevelInfo(DataConfiguration arg0)
public CompoundTag
E()
getCustomBossEvents()
method_228()
getCustomBossEvents()
public void
a(tq arg0)
setCustomBossEvents(CompoundTag arg0)
method_221(class_2487 arg0)
setCustomBossEvents(NbtCompound arg0)
public int
t()
getWanderingTraderSpawnDelay()
method_18038()
getWanderingTraderSpawnDelay()
public void
d(int arg0)
setWanderingTraderSpawnDelay(int arg0)
method_18041(int arg0)
setWanderingTraderSpawnDelay(int arg0)
public int
u()
getWanderingTraderSpawnChance()
method_18039()
getWanderingTraderSpawnChance()
public void
e(int arg0)
setWanderingTraderSpawnChance(int arg0)
method_18042(int arg0)
setWanderingTraderSpawnChance(int arg0)
public UUID
v()
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
F()
wasModded()
method_27431()
isModded()
public Set<String>
G()
getKnownServerBrands()
method_27432()
getServerBrands()
public Set<String>
H()
getRemovedFeatureFlags()
method_49900()
getRemovedFeatures()
public ServerLevelData
I()
overworldData()
method_27859()
getMainWorldProperties()
public LevelSettings
J()
getLevelSettings()
method_27433()
getLevelInfo()