public class WorldInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,NBTBase> |
additionalProperties |
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 |
borderWarningDistance |
private int |
borderWarningTime |
private int |
cleanWeatherTime |
static EnumDifficulty |
DEFAULT_DIFFICULTY |
private EnumDifficulty |
difficulty |
private boolean |
difficultyLocked |
private int |
dimension |
private java.util.Map<java.lang.Integer,NBTTagCompound> |
dimensionData |
private GameRules |
gameRules |
private GameType |
gameType |
private java.lang.String |
generatorOptions |
private boolean |
hardcore |
private boolean |
initialized |
private long |
lastTimePlayed |
private java.lang.String |
levelName |
private boolean |
mapFeaturesEnabled |
private NBTTagCompound |
playerTag |
private boolean |
raining |
private int |
rainTime |
private long |
randomSeed |
private int |
saveVersion |
private long |
sizeOnDisk |
private int |
spawnX |
private int |
spawnY |
private int |
spawnZ |
private WorldType |
terrainType |
private boolean |
thundering |
private int |
thunderTime |
private long |
totalTime |
private int |
versionId |
private java.lang.String |
versionName |
private boolean |
versionSnapshot |
private long |
worldTime |
Modifier | Constructor and Description |
---|---|
protected |
WorldInfo() |
|
WorldInfo(NBTTagCompound nbt) |
|
WorldInfo(WorldInfo worldInformation) |
|
WorldInfo(WorldSettings settings,
java.lang.String name) |
private java.lang.String versionName
private int versionId
private boolean versionSnapshot
public static final EnumDifficulty DEFAULT_DIFFICULTY
private long randomSeed
private WorldType terrainType
private java.lang.String generatorOptions
private int spawnX
private int spawnY
private int spawnZ
private long totalTime
private long worldTime
private long lastTimePlayed
private long sizeOnDisk
private NBTTagCompound playerTag
private int dimension
private java.lang.String levelName
private int saveVersion
private int cleanWeatherTime
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 EnumDifficulty 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 borderWarningDistance
private int borderWarningTime
private final java.util.Map<java.lang.Integer,NBTTagCompound> dimensionData
private GameRules gameRules
private java.util.Map<java.lang.String,NBTBase> additionalProperties
protected WorldInfo()
public WorldInfo(NBTTagCompound nbt)
public WorldInfo(WorldSettings settings, java.lang.String name)
public WorldInfo(WorldInfo worldInformation)
public static void registerFixes(DataFixer fixer)
public void populateFromWorldSettings(WorldSettings settings)
public NBTTagCompound cloneNBTCompound(@Nullable NBTTagCompound nbt)
private void updateTagCompound(NBTTagCompound nbt, NBTTagCompound playerNbt)
public long getSeed()
public int getSpawnX()
public int getSpawnY()
public int getSpawnZ()
public long getWorldTotalTime()
public long getWorldTime()
public long getSizeOnDisk()
public NBTTagCompound getPlayerNBTTagCompound()
public void setSpawnX(int x)
public void setSpawnY(int y)
public void setWorldTotalTime(long time)
public void setSpawnZ(int z)
public void setWorldTime(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 getCleanWeatherTime()
public void setCleanWeatherTime(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 isHardcoreModeEnabled()
public void setHardcore(boolean hardcoreIn)
public WorldType getTerrainType()
public void setTerrainType(WorldType type)
public java.lang.String getGeneratorOptions()
public boolean areCommandsAllowed()
public void setAllowCommands(boolean allow)
public boolean isInitialized()
public void setServerInitialized(boolean initializedIn)
public GameRules getGameRulesInstance()
public double getBorderCenterX()
public double getBorderCenterZ()
public double getBorderSize()
public void setBorderSize(double size)
public long getBorderLerpTime()
public void setBorderLerpTime(long time)
public double getBorderLerpTarget()
public void setBorderLerpTarget(double lerpSize)
public void getBorderCenterZ(double posZ)
public void getBorderCenterX(double posX)
public double getBorderSafeZone()
public void setBorderSafeZone(double amount)
public double getBorderDamagePerBlock()
public void setBorderDamagePerBlock(double damage)
public int getBorderWarningDistance()
public int getBorderWarningTime()
public void setBorderWarningDistance(int amountOfBlocks)
public void setBorderWarningTime(int ticks)
public EnumDifficulty getDifficulty()
public void setDifficulty(EnumDifficulty newDifficulty)
public boolean isDifficultyLocked()
public void setDifficultyLocked(boolean locked)
public void addToCrashReport(CrashReportCategory category)
public void setAdditionalProperties(java.util.Map<java.lang.String,NBTBase> additionalProperties)
additionalProperties
- public NBTBase getAdditionalProperty(java.lang.String additionalProperty)
@Deprecated public NBTTagCompound getDimensionData(DimensionType dimensionIn)
public NBTTagCompound getDimensionData(int dimensionIn)
@Deprecated public void setDimensionData(DimensionType dimensionIn, NBTTagCompound compound)
public void setDimensionData(int dimensionID, NBTTagCompound compound)
public int getVersionId()
public boolean isVersionSnapshot()
public java.lang.String getVersionName()