Package net.minecraft.world.storage
Class ServerWorldInfo
java.lang.Object
net.minecraft.world.storage.ServerWorldInfo
- All Implemented Interfaces:
IServerConfiguration
,IServerWorldInfo
,ISpawnWorldInfo
,IWorldInfo
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private CompoundNBT
private long
private boolean
private CompoundNBT
private final com.mojang.datafixers.DataFixer
private long
private boolean
private CompoundNBT
private static final org.apache.logging.log4j.Logger
private final int
private boolean
private int
private final TimerCallbackManager<MinecraftServer>
private WorldSettings
private float
private boolean
private int
private boolean
private final int
private UUID
private int
private int
private boolean
private WorldBorder.Serializer
private final DimensionGeneratorSettings
private final com.mojang.serialization.Lifecycle
private int
private int
private int
-
Constructor Summary
ModifierConstructorDescriptionprivate
ServerWorldInfo
(com.mojang.datafixers.DataFixer p_i242043_1_, int p_i242043_2_, CompoundNBT p_i242043_3_, boolean p_i242043_4_, int p_i242043_5_, int p_i242043_6_, int p_i242043_7_, float p_i242043_8_, long p_i242043_9_, long p_i242043_11_, int p_i242043_13_, int p_i242043_14_, int p_i242043_15_, boolean p_i242043_16_, int p_i242043_17_, boolean p_i242043_18_, boolean p_i242043_19_, boolean p_i242043_20_, WorldBorder.Serializer p_i242043_21_, int p_i242043_22_, int p_i242043_23_, UUID p_i242043_24_, LinkedHashSet<String> p_i242043_25_, TimerCallbackManager<MinecraftServer> p_i242043_26_, CompoundNBT p_i242043_27_, CompoundNBT p_i242043_28_, WorldSettings p_i242043_29_, DimensionGeneratorSettings p_i242043_30_, com.mojang.serialization.Lifecycle p_i242043_31_) ServerWorldInfo
(WorldSettings p_i232158_1_, DimensionGeneratorSettings p_i232158_2_, com.mojang.serialization.Lifecycle p_i232158_3_) -
Method Summary
Modifier and TypeMethodDescriptioncreateTag
(DynamicRegistries p_230411_1_, CompoundNBT p_230411_2_) void
fillCrashReportCategory
(CrashReportCategory p_85118_1_) boolean
int
long
long
int
float
int
int
int
int
int
int
int
boolean
boolean
boolean
boolean
boolean
static ServerWorldInfo
parse
(com.mojang.serialization.Dynamic<INBT> p_237369_0_, com.mojang.datafixers.DataFixer p_237369_1_, int p_237369_2_, CompoundNBT p_237369_3_, WorldSettings p_237369_4_, VersionData p_237369_5_, DimensionGeneratorSettings p_237369_6_, com.mojang.serialization.Lifecycle p_237369_7_) void
setClearWeatherTime
(int p_230391_1_) void
setCustomBossEvents
(CompoundNBT p_230414_1_) void
setDataPackConfig
(DatapackCodec p_230410_1_) void
setDayTime
(long p_76068_1_) void
setDifficulty
(Difficulty p_230409_1_) void
setDifficultyLocked
(boolean p_230415_1_) void
setEndDragonFightData
(CompoundNBT p_230413_1_) void
setGameTime
(long p_82572_1_) void
setGameType
(GameType p_230392_1_) void
setInitialized
(boolean p_76091_1_) void
setModdedInfo
(String p_230412_1_, boolean p_230412_2_) void
setRaining
(boolean p_76084_1_) void
setRainTime
(int p_76080_1_) void
void
setSpawnAngle
(float p_241859_1_) private void
setTagData
(DynamicRegistries p_237370_1_, CompoundNBT p_237370_2_, CompoundNBT p_237370_3_) void
setThundering
(boolean p_76069_1_) void
setThunderTime
(int p_76090_1_) void
setWanderingTraderId
(UUID p_230394_1_) void
setWanderingTraderSpawnChance
(int p_230397_1_) void
setWanderingTraderSpawnDelay
(int p_230396_1_) void
setWorldBorder
(WorldBorder.Serializer p_230393_1_) void
setXSpawn
(int p_76058_1_) void
setYSpawn
(int p_76056_1_) void
setZSpawn
(int p_76087_1_) private void
boolean
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.storage.IServerConfiguration
getStorageVersionName
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
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
-
-
Constructor Details
-
ServerWorldInfo
private ServerWorldInfo(@Nullable com.mojang.datafixers.DataFixer p_i242043_1_, int p_i242043_2_, @Nullable CompoundNBT p_i242043_3_, boolean p_i242043_4_, int p_i242043_5_, int p_i242043_6_, int p_i242043_7_, float p_i242043_8_, long p_i242043_9_, long p_i242043_11_, int p_i242043_13_, int p_i242043_14_, int p_i242043_15_, boolean p_i242043_16_, int p_i242043_17_, boolean p_i242043_18_, boolean p_i242043_19_, boolean p_i242043_20_, WorldBorder.Serializer p_i242043_21_, int p_i242043_22_, int p_i242043_23_, @Nullable UUID p_i242043_24_, LinkedHashSet<String> p_i242043_25_, TimerCallbackManager<MinecraftServer> p_i242043_26_, @Nullable CompoundNBT p_i242043_27_, CompoundNBT p_i242043_28_, WorldSettings p_i242043_29_, DimensionGeneratorSettings p_i242043_30_, com.mojang.serialization.Lifecycle p_i242043_31_) -
ServerWorldInfo
public ServerWorldInfo(WorldSettings p_i232158_1_, DimensionGeneratorSettings p_i232158_2_, com.mojang.serialization.Lifecycle p_i232158_3_)
-
-
Method Details
-
parse
public static ServerWorldInfo parse(com.mojang.serialization.Dynamic<INBT> p_237369_0_, com.mojang.datafixers.DataFixer p_237369_1_, int p_237369_2_, @Nullable CompoundNBT p_237369_3_, WorldSettings p_237369_4_, VersionData p_237369_5_, DimensionGeneratorSettings p_237369_6_, com.mojang.serialization.Lifecycle p_237369_7_) -
createTag
- Specified by:
createTag
in interfaceIServerConfiguration
-
setTagData
private void setTagData(DynamicRegistries p_237370_1_, CompoundNBT p_237370_2_, @Nullable CompoundNBT p_237370_3_) -
getXSpawn
public int getXSpawn()- Specified by:
getXSpawn
in interfaceIWorldInfo
-
getYSpawn
public int getYSpawn()- Specified by:
getYSpawn
in interfaceIWorldInfo
-
getZSpawn
public int getZSpawn()- Specified by:
getZSpawn
in interfaceIWorldInfo
-
getSpawnAngle
public float getSpawnAngle()- Specified by:
getSpawnAngle
in interfaceIWorldInfo
-
getGameTime
public long getGameTime()- Specified by:
getGameTime
in interfaceIWorldInfo
-
getDayTime
public long getDayTime()- Specified by:
getDayTime
in interfaceIWorldInfo
-
updatePlayerTag
private void updatePlayerTag() -
getLoadedPlayerTag
- Specified by:
getLoadedPlayerTag
in interfaceIServerConfiguration
-
setXSpawn
public void setXSpawn(int p_76058_1_) - Specified by:
setXSpawn
in interfaceISpawnWorldInfo
-
setYSpawn
public void setYSpawn(int p_76056_1_) - Specified by:
setYSpawn
in interfaceISpawnWorldInfo
-
setZSpawn
public void setZSpawn(int p_76087_1_) - Specified by:
setZSpawn
in interfaceISpawnWorldInfo
-
setSpawnAngle
public void setSpawnAngle(float p_241859_1_) - Specified by:
setSpawnAngle
in interfaceISpawnWorldInfo
-
setGameTime
public void setGameTime(long p_82572_1_) - Specified by:
setGameTime
in interfaceIServerWorldInfo
-
setDayTime
public void setDayTime(long p_76068_1_) - Specified by:
setDayTime
in interfaceIServerWorldInfo
-
setSpawn
- Specified by:
setSpawn
in interfaceISpawnWorldInfo
-
getLevelName
- Specified by:
getLevelName
in interfaceIServerConfiguration
- Specified by:
getLevelName
in interfaceIServerWorldInfo
-
getVersion
public int getVersion()- Specified by:
getVersion
in interfaceIServerConfiguration
-
getClearWeatherTime
public int getClearWeatherTime()- Specified by:
getClearWeatherTime
in interfaceIServerWorldInfo
-
setClearWeatherTime
public void setClearWeatherTime(int p_230391_1_) - Specified by:
setClearWeatherTime
in interfaceIServerWorldInfo
-
isThundering
public boolean isThundering()- Specified by:
isThundering
in interfaceIWorldInfo
-
setThundering
public void setThundering(boolean p_76069_1_) - Specified by:
setThundering
in interfaceIServerWorldInfo
-
getThunderTime
public int getThunderTime()- Specified by:
getThunderTime
in interfaceIServerWorldInfo
-
setThunderTime
public void setThunderTime(int p_76090_1_) - Specified by:
setThunderTime
in interfaceIServerWorldInfo
-
isRaining
public boolean isRaining()- Specified by:
isRaining
in interfaceIWorldInfo
-
setRaining
public void setRaining(boolean p_76084_1_) - Specified by:
setRaining
in interfaceIWorldInfo
-
getRainTime
public int getRainTime()- Specified by:
getRainTime
in interfaceIServerWorldInfo
-
setRainTime
public void setRainTime(int p_76080_1_) - Specified by:
setRainTime
in interfaceIServerWorldInfo
-
getGameType
- Specified by:
getGameType
in interfaceIServerConfiguration
- Specified by:
getGameType
in interfaceIServerWorldInfo
-
setGameType
- Specified by:
setGameType
in interfaceIServerConfiguration
- Specified by:
setGameType
in interfaceIServerWorldInfo
-
isHardcore
public boolean isHardcore()- Specified by:
isHardcore
in interfaceIServerConfiguration
- Specified by:
isHardcore
in interfaceIWorldInfo
-
getAllowCommands
public boolean getAllowCommands()- Specified by:
getAllowCommands
in interfaceIServerConfiguration
- Specified by:
getAllowCommands
in interfaceIServerWorldInfo
-
isInitialized
public boolean isInitialized()- Specified by:
isInitialized
in interfaceIServerWorldInfo
-
setInitialized
public void setInitialized(boolean p_76091_1_) - Specified by:
setInitialized
in interfaceIServerWorldInfo
-
getGameRules
- Specified by:
getGameRules
in interfaceIServerConfiguration
- Specified by:
getGameRules
in interfaceIWorldInfo
-
getWorldBorder
- Specified by:
getWorldBorder
in interfaceIServerWorldInfo
-
setWorldBorder
- Specified by:
setWorldBorder
in interfaceIServerWorldInfo
-
getDifficulty
- Specified by:
getDifficulty
in interfaceIServerConfiguration
- Specified by:
getDifficulty
in interfaceIWorldInfo
-
setDifficulty
- Specified by:
setDifficulty
in interfaceIServerConfiguration
-
isDifficultyLocked
public boolean isDifficultyLocked()- Specified by:
isDifficultyLocked
in interfaceIServerConfiguration
- Specified by:
isDifficultyLocked
in interfaceIWorldInfo
-
setDifficultyLocked
public void setDifficultyLocked(boolean p_230415_1_) - Specified by:
setDifficultyLocked
in interfaceIServerConfiguration
-
getScheduledEvents
- Specified by:
getScheduledEvents
in interfaceIServerWorldInfo
-
fillCrashReportCategory
- Specified by:
fillCrashReportCategory
in interfaceIServerConfiguration
- Specified by:
fillCrashReportCategory
in interfaceIServerWorldInfo
- Specified by:
fillCrashReportCategory
in interfaceIWorldInfo
-
worldGenSettings
- Specified by:
worldGenSettings
in interfaceIServerConfiguration
-
worldGenSettingsLifecycle
public com.mojang.serialization.Lifecycle worldGenSettingsLifecycle()- Specified by:
worldGenSettingsLifecycle
in interfaceIServerConfiguration
-
endDragonFightData
- Specified by:
endDragonFightData
in interfaceIServerConfiguration
-
setEndDragonFightData
- Specified by:
setEndDragonFightData
in interfaceIServerConfiguration
-
getDataPackConfig
- Specified by:
getDataPackConfig
in interfaceIServerConfiguration
-
setDataPackConfig
- Specified by:
setDataPackConfig
in interfaceIServerConfiguration
-
getCustomBossEvents
- Specified by:
getCustomBossEvents
in interfaceIServerConfiguration
-
setCustomBossEvents
- Specified by:
setCustomBossEvents
in interfaceIServerConfiguration
-
getWanderingTraderSpawnDelay
public int getWanderingTraderSpawnDelay()- Specified by:
getWanderingTraderSpawnDelay
in interfaceIServerWorldInfo
-
setWanderingTraderSpawnDelay
public void setWanderingTraderSpawnDelay(int p_230396_1_) - Specified by:
setWanderingTraderSpawnDelay
in interfaceIServerWorldInfo
-
getWanderingTraderSpawnChance
public int getWanderingTraderSpawnChance()- Specified by:
getWanderingTraderSpawnChance
in interfaceIServerWorldInfo
-
setWanderingTraderSpawnChance
public void setWanderingTraderSpawnChance(int p_230397_1_) - Specified by:
setWanderingTraderSpawnChance
in interfaceIServerWorldInfo
-
setWanderingTraderId
- Specified by:
setWanderingTraderId
in interfaceIServerWorldInfo
-
setModdedInfo
- Specified by:
setModdedInfo
in interfaceIServerConfiguration
-
wasModded
public boolean wasModded()- Specified by:
wasModded
in interfaceIServerConfiguration
-
getKnownServerBrands
- Specified by:
getKnownServerBrands
in interfaceIServerConfiguration
-
overworldData
- Specified by:
overworldData
in interfaceIServerConfiguration
-
getLevelSettings
- Specified by:
getLevelSettings
in interfaceIServerConfiguration
-