Class PrimaryLevelData
java.lang.Object
net.minecraft.world.level.storage.PrimaryLevelData
- All Implemented Interfaces:
LevelData
,ServerLevelData
,WorldData
,WritableLevelData
-
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 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 WorldGenSettings
private final com.mojang.serialization.Lifecycle
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_164942_, int p_164943_, CompoundTag p_164944_, boolean p_164945_, int p_164946_, int p_164947_, int p_164948_, float p_164949_, long p_164950_, long p_164951_, int p_164952_, int p_164953_, int p_164954_, boolean p_164955_, int p_164956_, boolean p_164957_, boolean p_164958_, boolean p_164959_, WorldBorder.Settings p_164960_, int p_164961_, int p_164962_, UUID p_164963_, Set<String> p_164964_, TimerQueue<MinecraftServer> p_164965_, CompoundTag p_164966_, CompoundTag p_164967_, LevelSettings p_164968_, WorldGenSettings p_164969_, com.mojang.serialization.Lifecycle p_164970_) PrimaryLevelData
(LevelSettings p_78470_, WorldGenSettings p_78471_, com.mojang.serialization.Lifecycle p_78472_) -
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
static PrimaryLevelData
parse
(com.mojang.serialization.Dynamic<Tag> p_78531_, com.mojang.datafixers.DataFixer p_78532_, int p_78533_, CompoundTag p_78534_, LevelSettings p_78535_, LevelVersion p_78536_, WorldGenSettings p_78537_, com.mojang.serialization.Lifecycle p_78538_) void
setClearWeatherTime
(int p_78517_) void
setCustomBossEvents
(CompoundTag p_78571_) void
setDataPackConfig
(DataPackConfig p_78523_) 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
fillCrashReportCategory, getStorageVersionName
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
PLAYER
- See Also:
-
WORLD_GEN_SETTINGS
- See Also:
-
settings
-
worldGenSettings
-
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_164942_, int p_164943_, @Nullable CompoundTag p_164944_, boolean p_164945_, int p_164946_, int p_164947_, int p_164948_, float p_164949_, long p_164950_, long p_164951_, int p_164952_, int p_164953_, int p_164954_, boolean p_164955_, int p_164956_, boolean p_164957_, boolean p_164958_, boolean p_164959_, WorldBorder.Settings p_164960_, int p_164961_, int p_164962_, @Nullable UUID p_164963_, Set<String> p_164964_, TimerQueue<MinecraftServer> p_164965_, @Nullable CompoundTag p_164966_, CompoundTag p_164967_, LevelSettings p_164968_, WorldGenSettings p_164969_, com.mojang.serialization.Lifecycle p_164970_) -
PrimaryLevelData
public PrimaryLevelData(LevelSettings p_78470_, WorldGenSettings p_78471_, com.mojang.serialization.Lifecycle p_78472_)
-
-
Method Details
-
parse
public static PrimaryLevelData parse(com.mojang.serialization.Dynamic<Tag> p_78531_, com.mojang.datafixers.DataFixer p_78532_, int p_78533_, @Nullable CompoundTag p_78534_, LevelSettings p_78535_, LevelVersion p_78536_, WorldGenSettings p_78537_, 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
-
worldGenSettings
- Specified by:
worldGenSettings
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
-
getDataPackConfig
- Specified by:
getDataPackConfig
in interfaceWorldData
-
setDataPackConfig
- Specified by:
setDataPackConfig
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
-