public class DerivedWorldInfo extends WorldInfo
DEFAULT_DIFFICULTY
Constructor and Description |
---|
DerivedWorldInfo(WorldInfo worldInfoIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
areCommandsAllowed()
Returns true if commands are allowed on this World.
|
NBTTagCompound |
cloneNBTCompound(NBTTagCompound nbt)
Creates a new NBTTagCompound for the world, with the given NBTTag as the "Player"
|
EnumDifficulty |
getDifficulty() |
NBTTagCompound |
getDimensionData(DimensionType dimensionIn)
Deprecated.
|
NBTTagCompound |
getDimensionData(int dimensionID) |
GameRules |
getGameRulesInstance()
Gets the GameRules class Instance.
|
GameType |
getGameType()
Gets the GameType.
|
long |
getLastTimePlayed()
Return the last time the player was in this world.
|
NBTTagCompound |
getPlayerNBTTagCompound()
Returns the player's NBTTagCompound to be loaded
|
int |
getRainTime()
Return the number of ticks until rain.
|
int |
getSaveVersion()
Returns the save version of this world
|
long |
getSeed()
Returns the seed of current world.
|
long |
getSizeOnDisk() |
int |
getSpawnX()
Returns the x spawn position
|
int |
getSpawnY()
Return the Y axis spawning point of the player.
|
int |
getSpawnZ()
Returns the z spawn position
|
WorldType |
getTerrainType() |
int |
getThunderTime()
Returns the number of ticks until next thunderbolt.
|
java.lang.String |
getWorldName()
Get current world name
|
long |
getWorldTime()
Get current world time
|
long |
getWorldTotalTime() |
boolean |
isDifficultyLocked() |
boolean |
isHardcoreModeEnabled()
Returns true if hardcore mode is enabled, otherwise false
|
boolean |
isInitialized()
Returns true if the World is initialized.
|
boolean |
isMapFeaturesEnabled()
Get whether the map features (e.g.
|
boolean |
isRaining()
Returns true if it is raining, false otherwise.
|
boolean |
isThundering()
Returns true if it is thundering, false otherwise.
|
void |
setAllowCommands(boolean allow) |
void |
setDifficulty(EnumDifficulty newDifficulty) |
void |
setDifficultyLocked(boolean locked) |
void |
setDimensionData(DimensionType dimensionIn,
NBTTagCompound compound)
Deprecated.
|
void |
setDimensionData(int dimensionID,
NBTTagCompound compound) |
void |
setRaining(boolean isRaining)
Sets whether it is raining or not.
|
void |
setRainTime(int time)
Sets the number of ticks until rain.
|
void |
setSaveVersion(int version)
Sets the save version of the world
|
void |
setServerInitialized(boolean initializedIn)
Sets the initialization status of the World.
|
void |
setSpawn(BlockPos spawnPoint) |
void |
setSpawnX(int x)
Set the x spawn position to the passed in value
|
void |
setSpawnY(int y)
Sets the y spawn position
|
void |
setSpawnZ(int z)
Set the z spawn position to the passed in value
|
void |
setTerrainType(WorldType type) |
void |
setThundering(boolean thunderingIn)
Sets whether it is thundering or not.
|
void |
setThunderTime(int time)
Defines the number of ticks until next thunderbolt.
|
void |
setWorldName(java.lang.String worldName) |
void |
setWorldTime(long time)
Set current world time
|
void |
setWorldTotalTime(long time) |
addToCrashReport, getAdditionalProperty, getBorderCenterX, getBorderCenterX, getBorderCenterZ, getBorderCenterZ, getBorderDamagePerBlock, getBorderLerpTarget, getBorderLerpTime, getBorderSafeZone, getBorderSize, getBorderWarningDistance, getBorderWarningTime, getCleanWeatherTime, getGeneratorOptions, getVersionId, getVersionName, isVersionSnapshot, populateFromWorldSettings, registerFixes, setAdditionalProperties, setBorderDamagePerBlock, setBorderLerpTarget, setBorderLerpTime, setBorderSafeZone, setBorderSize, setBorderWarningDistance, setBorderWarningTime, setCleanWeatherTime, setGameType, setHardcore, setMapFeaturesEnabled
public DerivedWorldInfo(WorldInfo worldInfoIn)
public NBTTagCompound cloneNBTCompound(NBTTagCompound nbt)
cloneNBTCompound
in class WorldInfo
public long getSeed()
public int getSpawnX()
public int getSpawnY()
public int getSpawnZ()
public long getWorldTotalTime()
getWorldTotalTime
in class WorldInfo
public long getWorldTime()
getWorldTime
in class WorldInfo
public long getSizeOnDisk()
getSizeOnDisk
in class WorldInfo
public NBTTagCompound getPlayerNBTTagCompound()
getPlayerNBTTagCompound
in class WorldInfo
public java.lang.String getWorldName()
getWorldName
in class WorldInfo
public int getSaveVersion()
getSaveVersion
in class WorldInfo
public long getLastTimePlayed()
getLastTimePlayed
in class WorldInfo
public boolean isThundering()
isThundering
in class WorldInfo
public int getThunderTime()
getThunderTime
in class WorldInfo
public boolean isRaining()
public int getRainTime()
getRainTime
in class WorldInfo
public GameType getGameType()
getGameType
in class WorldInfo
public void setSpawnX(int x)
public void setSpawnY(int y)
public void setWorldTotalTime(long time)
setWorldTotalTime
in class WorldInfo
public void setSpawnZ(int z)
public void setWorldTime(long time)
setWorldTime
in class WorldInfo
public void setWorldName(java.lang.String worldName)
setWorldName
in class WorldInfo
public void setSaveVersion(int version)
setSaveVersion
in class WorldInfo
public void setThundering(boolean thunderingIn)
setThundering
in class WorldInfo
public void setThunderTime(int time)
setThunderTime
in class WorldInfo
public void setRaining(boolean isRaining)
setRaining
in class WorldInfo
public void setRainTime(int time)
setRainTime
in class WorldInfo
public boolean isMapFeaturesEnabled()
isMapFeaturesEnabled
in class WorldInfo
public boolean isHardcoreModeEnabled()
isHardcoreModeEnabled
in class WorldInfo
public WorldType getTerrainType()
getTerrainType
in class WorldInfo
public void setTerrainType(WorldType type)
setTerrainType
in class WorldInfo
public boolean areCommandsAllowed()
areCommandsAllowed
in class WorldInfo
public void setAllowCommands(boolean allow)
setAllowCommands
in class WorldInfo
public boolean isInitialized()
isInitialized
in class WorldInfo
public void setServerInitialized(boolean initializedIn)
setServerInitialized
in class WorldInfo
public GameRules getGameRulesInstance()
getGameRulesInstance
in class WorldInfo
public EnumDifficulty getDifficulty()
getDifficulty
in class WorldInfo
public void setDifficulty(EnumDifficulty newDifficulty)
setDifficulty
in class WorldInfo
public boolean isDifficultyLocked()
isDifficultyLocked
in class WorldInfo
public void setDifficultyLocked(boolean locked)
setDifficultyLocked
in class WorldInfo
@Deprecated public void setDimensionData(DimensionType dimensionIn, NBTTagCompound compound)
setDimensionData
in class WorldInfo
@Deprecated public NBTTagCompound getDimensionData(DimensionType dimensionIn)
getDimensionData
in class WorldInfo
public void setDimensionData(int dimensionID, NBTTagCompound compound)
setDimensionData
in class WorldInfo
public NBTTagCompound getDimensionData(int dimensionID)
getDimensionData
in class WorldInfo