Class PrimaryLevelData
java.lang.Object
net.minecraft.world.level.storage.PrimaryLevelData
- All Implemented Interfaces:
LevelData
,ServerLevelData
,WorldData
,WritableLevelData
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private boolean
private CompoundTag
private long
private boolean
private CompoundTag
private final com.mojang.datafixers.DataFixer
private long
private boolean
private CompoundTag
private static final org.slf4j.Logger
protected static final String
private final int
private boolean
private int
private final TimerQueue<MinecraftServer>
private LevelSettings
private float
private final PrimaryLevelData.SpecialWorldProperty
private boolean
private int
private boolean
private final int
private UUID
private int
private int
private boolean
protected static final String
private WorldBorder.Settings
private final com.mojang.serialization.Lifecycle
private final WorldOptions
private int
private int
private int
Fields inherited from interface net.minecraft.world.level.storage.WorldData
ANVIL_VERSION_ID, MCREGION_VERSION_ID
-
Constructor Summary
ModifierConstructorDescriptionprivate
PrimaryLevelData
(com.mojang.datafixers.DataFixer p_249266_, int p_249857_, CompoundTag p_249309_, boolean p_251525_, int p_249614_, int p_252310_, int p_250544_, float p_250495_, long p_250393_, long p_252085_, int p_250455_, int p_248981_, int p_249051_, boolean p_249672_, int p_249807_, boolean p_252350_, boolean p_250231_, boolean p_249788_, WorldBorder.Settings p_251494_, int p_249519_, int p_250649_, UUID p_248892_, Set<String> p_251898_, TimerQueue<MinecraftServer> p_251119_, CompoundTag p_248915_, CompoundTag p_252274_, LevelSettings p_248619_, WorldOptions p_251512_, PrimaryLevelData.SpecialWorldProperty p_251396_, com.mojang.serialization.Lifecycle p_252247_) PrimaryLevelData
(LevelSettings p_251081_, WorldOptions p_251666_, PrimaryLevelData.SpecialWorldProperty p_252268_, com.mojang.serialization.Lifecycle p_251714_) -
Method Summary
Modifier and TypeMethodDescriptioncreateTag
(RegistryAccess p_78543_, CompoundTag p_78544_) void
fillCrashReportCategory
(CrashReportCategory p_164972_, LevelHeightAccessor p_164973_) boolean
int
long
long
int
float
int
int
int
int
int
int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static <T> PrimaryLevelData
parse
(com.mojang.serialization.Dynamic<T> p_78531_, com.mojang.datafixers.DataFixer p_78532_, int p_78533_, CompoundTag p_78534_, LevelSettings p_78535_, LevelVersion p_78536_, PrimaryLevelData.SpecialWorldProperty p_250651_, WorldOptions p_251864_, com.mojang.serialization.Lifecycle p_78538_) void
setClearWeatherTime
(int p_78517_) void
setCustomBossEvents
(CompoundTag p_78571_) void
setDataConfiguration
(WorldDataConfiguration p_252328_) void
setDayTime
(long p_78567_) void
setDifficulty
(Difficulty p_78521_) void
setDifficultyLocked
(boolean p_78586_) void
setEndDragonFightData
(CompoundTag p_78557_) void
setGameTime
(long p_78519_) void
setGameType
(GameType p_78525_) void
setInitialized
(boolean p_78581_) void
setModdedInfo
(String p_78550_, boolean p_78551_) void
setRaining
(boolean p_78576_) void
setRainTime
(int p_78592_) void
void
setSpawnAngle
(float p_78515_) private void
setTagData
(RegistryAccess p_78546_, CompoundTag p_78547_, CompoundTag p_78548_) void
setThundering
(boolean p_78562_) void
setThunderTime
(int p_78589_) void
setWanderingTraderId
(UUID p_78553_) void
setWanderingTraderSpawnChance
(int p_78598_) void
setWanderingTraderSpawnDelay
(int p_78595_) void
setWorldBorder
(WorldBorder.Settings p_78527_) void
setXSpawn
(int p_78565_) void
setYSpawn
(int p_78579_) void
setZSpawn
(int p_78584_) private void
boolean
withConfirmedWarning
(boolean confirmedWarning) com.mojang.serialization.Lifecycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.WorldData
enabledFeatures, fillCrashReportCategory, getStorageVersionName
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
PLAYER
- See Also:
-
WORLD_GEN_SETTINGS
- See Also:
-
settings
-
worldOptions
-
specialWorldProperty
-
worldGenSettingsLifecycle
private final com.mojang.serialization.Lifecycle worldGenSettingsLifecycle -
xSpawn
private int xSpawn -
ySpawn
private int ySpawn -
zSpawn
private int zSpawn -
spawnAngle
private float spawnAngle -
gameTime
private long gameTime -
dayTime
private long dayTime -
fixerUpper
@Nullable private final com.mojang.datafixers.DataFixer fixerUpper -
playerDataVersion
private final int playerDataVersion -
upgradedPlayerTag
private boolean upgradedPlayerTag -
loadedPlayerTag
-
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
-
endDragonFightData
-
customBossEvents
-
wanderingTraderSpawnDelay
private int wanderingTraderSpawnDelay -
wanderingTraderSpawnChance
private int wanderingTraderSpawnChance -
wanderingTraderId
-
knownServerBrands
-
wasModded
private boolean wasModded -
scheduledEvents
-
confirmedExperimentalWarning
private boolean confirmedExperimentalWarning
-
-
Constructor Details
-
PrimaryLevelData
private PrimaryLevelData(@Nullable com.mojang.datafixers.DataFixer p_249266_, int p_249857_, @Nullable CompoundTag p_249309_, boolean p_251525_, int p_249614_, int p_252310_, int p_250544_, float p_250495_, long p_250393_, long p_252085_, int p_250455_, int p_248981_, int p_249051_, boolean p_249672_, int p_249807_, boolean p_252350_, boolean p_250231_, boolean p_249788_, WorldBorder.Settings p_251494_, int p_249519_, int p_250649_, @Nullable UUID p_248892_, Set<String> p_251898_, TimerQueue<MinecraftServer> p_251119_, @Nullable CompoundTag p_248915_, CompoundTag p_252274_, LevelSettings p_248619_, WorldOptions p_251512_, PrimaryLevelData.SpecialWorldProperty p_251396_, com.mojang.serialization.Lifecycle p_252247_) -
PrimaryLevelData
public PrimaryLevelData(LevelSettings p_251081_, WorldOptions p_251666_, PrimaryLevelData.SpecialWorldProperty p_252268_, com.mojang.serialization.Lifecycle p_251714_)
-
-
Method Details
-
parse
public static <T> PrimaryLevelData parse(com.mojang.serialization.Dynamic<T> p_78531_, com.mojang.datafixers.DataFixer p_78532_, int p_78533_, @Nullable CompoundTag p_78534_, LevelSettings p_78535_, LevelVersion p_78536_, PrimaryLevelData.SpecialWorldProperty p_250651_, WorldOptions p_251864_, com.mojang.serialization.Lifecycle p_78538_) -
createTag
-
setTagData
private void setTagData(RegistryAccess p_78546_, CompoundTag p_78547_, @Nullable CompoundTag p_78548_) -
getXSpawn
public int getXSpawn() -
getYSpawn
public int getYSpawn() -
getZSpawn
public int getZSpawn() -
getSpawnAngle
public float getSpawnAngle()- Specified by:
getSpawnAngle
in interfaceLevelData
-
getGameTime
public long getGameTime()- Specified by:
getGameTime
in interfaceLevelData
-
getDayTime
public long getDayTime()- Specified by:
getDayTime
in interfaceLevelData
-
updatePlayerTag
private void updatePlayerTag() -
getLoadedPlayerTag
- Specified by:
getLoadedPlayerTag
in interfaceWorldData
-
setXSpawn
public void setXSpawn(int p_78565_) - Specified by:
setXSpawn
in interfaceWritableLevelData
-
setYSpawn
public void setYSpawn(int p_78579_) - Specified by:
setYSpawn
in interfaceWritableLevelData
-
setZSpawn
public void setZSpawn(int p_78584_) - Specified by:
setZSpawn
in interfaceWritableLevelData
-
setSpawnAngle
public void setSpawnAngle(float p_78515_) - Specified by:
setSpawnAngle
in interfaceWritableLevelData
-
setGameTime
public void setGameTime(long p_78519_) - Specified by:
setGameTime
in interfaceServerLevelData
-
setDayTime
public void setDayTime(long p_78567_) - Specified by:
setDayTime
in interfaceServerLevelData
-
setSpawn
- Specified by:
setSpawn
in interfaceWritableLevelData
-
getLevelName
- Specified by:
getLevelName
in interfaceServerLevelData
- Specified by:
getLevelName
in interfaceWorldData
-
getVersion
public int getVersion()- Specified by:
getVersion
in interfaceWorldData
-
getClearWeatherTime
public int getClearWeatherTime()- Specified by:
getClearWeatherTime
in interfaceServerLevelData
-
setClearWeatherTime
public void setClearWeatherTime(int p_78517_) - Specified by:
setClearWeatherTime
in interfaceServerLevelData
-
isThundering
public boolean isThundering()- Specified by:
isThundering
in interfaceLevelData
-
setThundering
public void setThundering(boolean p_78562_) - Specified by:
setThundering
in interfaceServerLevelData
-
getThunderTime
public int getThunderTime()- Specified by:
getThunderTime
in interfaceServerLevelData
-
setThunderTime
public void setThunderTime(int p_78589_) - Specified by:
setThunderTime
in interfaceServerLevelData
-
isRaining
public boolean isRaining() -
setRaining
public void setRaining(boolean p_78576_) - Specified by:
setRaining
in interfaceLevelData
-
getRainTime
public int getRainTime()- Specified by:
getRainTime
in interfaceServerLevelData
-
setRainTime
public void setRainTime(int p_78592_) - Specified by:
setRainTime
in interfaceServerLevelData
-
getGameType
- Specified by:
getGameType
in interfaceServerLevelData
- Specified by:
getGameType
in interfaceWorldData
-
setGameType
- Specified by:
setGameType
in interfaceServerLevelData
- Specified by:
setGameType
in interfaceWorldData
-
isHardcore
public boolean isHardcore()- Specified by:
isHardcore
in interfaceLevelData
- Specified by:
isHardcore
in interfaceWorldData
-
getAllowCommands
public boolean getAllowCommands()- Specified by:
getAllowCommands
in interfaceServerLevelData
- Specified by:
getAllowCommands
in interfaceWorldData
-
isInitialized
public boolean isInitialized()- Specified by:
isInitialized
in interfaceServerLevelData
-
setInitialized
public void setInitialized(boolean p_78581_) - Specified by:
setInitialized
in interfaceServerLevelData
-
getGameRules
- Specified by:
getGameRules
in interfaceLevelData
- Specified by:
getGameRules
in interfaceWorldData
-
getWorldBorder
- Specified by:
getWorldBorder
in interfaceServerLevelData
-
setWorldBorder
- Specified by:
setWorldBorder
in interfaceServerLevelData
-
getDifficulty
- Specified by:
getDifficulty
in interfaceLevelData
- Specified by:
getDifficulty
in interfaceWorldData
-
setDifficulty
- Specified by:
setDifficulty
in interfaceWorldData
-
isDifficultyLocked
public boolean isDifficultyLocked()- Specified by:
isDifficultyLocked
in interfaceLevelData
- Specified by:
isDifficultyLocked
in interfaceWorldData
-
setDifficultyLocked
public void setDifficultyLocked(boolean p_78586_) - Specified by:
setDifficultyLocked
in interfaceWorldData
-
getScheduledEvents
- Specified by:
getScheduledEvents
in interfaceServerLevelData
-
fillCrashReportCategory
- Specified by:
fillCrashReportCategory
in interfaceLevelData
- Specified by:
fillCrashReportCategory
in interfaceServerLevelData
-
worldGenOptions
- Specified by:
worldGenOptions
in interfaceWorldData
-
isFlatWorld
public boolean isFlatWorld()- Specified by:
isFlatWorld
in interfaceWorldData
-
isDebugWorld
public boolean isDebugWorld()- Specified by:
isDebugWorld
in interfaceWorldData
-
worldGenSettingsLifecycle
public com.mojang.serialization.Lifecycle worldGenSettingsLifecycle()- Specified by:
worldGenSettingsLifecycle
in interfaceWorldData
-
endDragonFightData
- Specified by:
endDragonFightData
in interfaceWorldData
-
setEndDragonFightData
- Specified by:
setEndDragonFightData
in interfaceWorldData
-
getDataConfiguration
- Specified by:
getDataConfiguration
in interfaceWorldData
-
setDataConfiguration
- Specified by:
setDataConfiguration
in interfaceWorldData
-
getCustomBossEvents
- Specified by:
getCustomBossEvents
in interfaceWorldData
-
setCustomBossEvents
- Specified by:
setCustomBossEvents
in interfaceWorldData
-
getWanderingTraderSpawnDelay
public int getWanderingTraderSpawnDelay()- Specified by:
getWanderingTraderSpawnDelay
in interfaceServerLevelData
-
setWanderingTraderSpawnDelay
public void setWanderingTraderSpawnDelay(int p_78595_) - Specified by:
setWanderingTraderSpawnDelay
in interfaceServerLevelData
-
getWanderingTraderSpawnChance
public int getWanderingTraderSpawnChance()- Specified by:
getWanderingTraderSpawnChance
in interfaceServerLevelData
-
setWanderingTraderSpawnChance
public void setWanderingTraderSpawnChance(int p_78598_) - Specified by:
setWanderingTraderSpawnChance
in interfaceServerLevelData
-
getWanderingTraderId
- Specified by:
getWanderingTraderId
in interfaceServerLevelData
-
setWanderingTraderId
- Specified by:
setWanderingTraderId
in interfaceServerLevelData
-
setModdedInfo
- Specified by:
setModdedInfo
in interfaceWorldData
-
wasModded
public boolean wasModded() -
getKnownServerBrands
- Specified by:
getKnownServerBrands
in interfaceWorldData
-
overworldData
- Specified by:
overworldData
in interfaceWorldData
-
getLevelSettings
- Specified by:
getLevelSettings
in interfaceWorldData
-
hasConfirmedExperimentalWarning
public boolean hasConfirmedExperimentalWarning() -
withConfirmedWarning
-