public class WorldInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
allowCommands |
private double |
borderCenterX |
private double |
borderCenterZ |
private double |
borderDamagePerBlock |
private double |
borderSafeZone |
private double |
borderSize |
private double |
borderSizeLerpTarget |
private long |
borderSizeLerpTime |
private int |
borderWarningBlocks |
private int |
borderWarningTime |
private int |
clearWeatherTime |
private CompoundNBT |
customBossEvents |
private int |
dataVersion |
private long |
dayTime |
static Difficulty |
DEFAULT_DIFFICULTY |
private Difficulty |
difficulty |
private boolean |
difficultyLocked |
private java.util.Map<DimensionType,CompoundNBT> |
dimensionData |
private java.util.Set<java.lang.String> |
disabledDataPacks |
private java.util.Set<java.lang.String> |
enabledDataPacks |
private java.util.Set<java.lang.String> |
field_230141_X_ |
private boolean |
field_230142_Y_ |
private com.mojang.datafixers.DataFixer |
fixer |
private GameRules |
gameRules |
private long |
gameTime |
private GameType |
gameType |
private WorldType |
generator |
private CompoundNBT |
generatorOptions |
private boolean |
hardcore |
private boolean |
initialized |
private long |
lastTimePlayed |
private java.lang.String |
legacyCustomOptions |
private java.lang.String |
levelName |
private boolean |
mapFeaturesEnabled |
private CompoundNBT |
playerData |
private boolean |
playerDataFixed |
private boolean |
raining |
private int |
rainTime |
private long |
randomSeed |
private int |
saveVersion |
private TimerCallbackManager<MinecraftServer> |
scheduledEvents |
private long |
sizeOnDisk |
private int |
spawnX |
private int |
spawnY |
private int |
spawnZ |
private boolean |
thundering |
private int |
thunderTime |
private int |
versionId |
private java.lang.String |
versionName |
private boolean |
versionSnapshot |
private java.util.UUID |
wanderingTraderId |
private int |
wanderingTraderSpawnChance |
private int |
wanderingTraderSpawnDelay |
Modifier | Constructor and Description |
---|---|
protected |
WorldInfo() |
|
WorldInfo(CompoundNBT nbt,
com.mojang.datafixers.DataFixer dataFixer,
int dataVersionIn,
CompoundNBT playerDataIn) |
|
WorldInfo(WorldSettings settings,
java.lang.String name) |
private java.lang.String versionName
private int versionId
private boolean versionSnapshot
public static final Difficulty DEFAULT_DIFFICULTY
private long randomSeed
private WorldType generator
private CompoundNBT generatorOptions
@Nullable private java.lang.String legacyCustomOptions
private int spawnX
private int spawnY
private int spawnZ
private long gameTime
private long dayTime
private long lastTimePlayed
private long sizeOnDisk
@Nullable private final com.mojang.datafixers.DataFixer fixer
private final int dataVersion
private boolean playerDataFixed
private CompoundNBT playerData
private java.lang.String levelName
private int saveVersion
private int clearWeatherTime
private boolean raining
private int rainTime
private boolean thundering
private int thunderTime
private GameType gameType
private boolean mapFeaturesEnabled
private boolean hardcore
private boolean allowCommands
private boolean initialized
private Difficulty difficulty
private boolean difficultyLocked
private double borderCenterX
private double borderCenterZ
private double borderSize
private long borderSizeLerpTime
private double borderSizeLerpTarget
private double borderSafeZone
private double borderDamagePerBlock
private int borderWarningBlocks
private int borderWarningTime
private final java.util.Set<java.lang.String> disabledDataPacks
private final java.util.Set<java.lang.String> enabledDataPacks
private final java.util.Map<DimensionType,CompoundNBT> dimensionData
private CompoundNBT customBossEvents
private int wanderingTraderSpawnDelay
private int wanderingTraderSpawnChance
private java.util.UUID wanderingTraderId
private java.util.Set<java.lang.String> field_230141_X_
private boolean field_230142_Y_
private final GameRules gameRules
private final TimerCallbackManager<MinecraftServer> scheduledEvents
protected WorldInfo()
public WorldInfo(CompoundNBT nbt, com.mojang.datafixers.DataFixer dataFixer, int dataVersionIn, @Nullable CompoundNBT playerDataIn)
public WorldInfo(WorldSettings settings, java.lang.String name)
public void populateFromWorldSettings(WorldSettings settings)
public CompoundNBT cloneNBTCompound(@Nullable CompoundNBT nbt)
private void updateTagCompound(CompoundNBT nbt, CompoundNBT playerNbt)
public long getSeed()
public static long byHashing(long p_227498_0_)
public int getSpawnX()
public int getSpawnY()
public int getSpawnZ()
public long getGameTime()
public long getDayTime()
private void fixPlayerData()
public CompoundNBT getPlayerNBTTagCompound()
public void setSpawnX(int x)
public void setSpawnY(int y)
public void setSpawnZ(int z)
public void setGameTime(long time)
public void setDayTime(long time)
public void setSpawn(BlockPos spawnPoint)
public java.lang.String getWorldName()
public void setWorldName(java.lang.String worldName)
public int getSaveVersion()
public void setSaveVersion(int version)
public long getLastTimePlayed()
public int getClearWeatherTime()
public void setClearWeatherTime(int cleanWeatherTimeIn)
public boolean isThundering()
public void setThundering(boolean thunderingIn)
public int getThunderTime()
public void setThunderTime(int time)
public boolean isRaining()
public void setRaining(boolean isRaining)
public int getRainTime()
public void setRainTime(int time)
public GameType getGameType()
public boolean isMapFeaturesEnabled()
public void setMapFeaturesEnabled(boolean enabled)
public void setGameType(GameType type)
public boolean isHardcore()
public void setHardcore(boolean hardcoreIn)
public WorldType getGenerator()
public void setGenerator(WorldType type)
public CompoundNBT getGeneratorOptions()
public void setGeneratorOptions(CompoundNBT p_212242_1_)
public boolean areCommandsAllowed()
public void setAllowCommands(boolean allow)
public boolean isInitialized()
public void setInitialized(boolean initializedIn)
public GameRules getGameRulesInstance()
public double getBorderCenterX()
public double getBorderCenterZ()
public double getBorderSize()
public void setBorderSize(double size)
public long getBorderSizeLerpTime()
public void setBorderSizeLerpTime(long time)
public double getBorderSizeLerpTarget()
public void setBorderSizeLerpTarget(double lerpSize)
public void setBorderCenterZ(double posZ)
public void setBorderCenterX(double posX)
public double getBorderSafeZone()
public void setBorderSafeZone(double amount)
public double getBorderDamagePerBlock()
public void setBorderDamagePerBlock(double damage)
public int getBorderWarningBlocks()
public int getBorderWarningTime()
public void setBorderWarningBlocks(int amountOfBlocks)
public void setBorderWarningTime(int ticks)
public Difficulty getDifficulty()
public void setDifficulty(Difficulty newDifficulty)
public boolean isDifficultyLocked()
public void setDifficultyLocked(boolean locked)
public TimerCallbackManager<MinecraftServer> getScheduledEvents()
public void addToCrashReport(CrashReportCategory category)
public CompoundNBT getDimensionData(DimensionType dimensionIn)
public void setDimensionData(DimensionType dimensionIn, CompoundNBT compound)
public int getVersionId()
public boolean isVersionSnapshot()
public java.lang.String getVersionName()
public java.util.Set<java.lang.String> getDisabledDataPacks()
public java.util.Set<java.lang.String> getEnabledDataPacks()
@Nullable public CompoundNBT getCustomBossEvents()
public void setCustomBossEvents(@Nullable CompoundNBT p_201356_1_)
public int getWanderingTraderSpawnDelay()
public void setWanderingTraderSpawnDelay(int p_215764_1_)
public int getWanderingTraderSpawnChance()
public void setWanderingTraderSpawnChance(int p_215762_1_)
public void setWanderingTraderId(java.util.UUID p_215761_1_)
public void func_230145_a_(java.lang.String p_230145_1_, boolean p_230145_2_)