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, setMapFeaturesEnabledpublic DerivedWorldInfo(WorldInfo worldInfoIn)
public NBTTagCompound cloneNBTCompound(NBTTagCompound nbt)
cloneNBTCompound in class WorldInfopublic long getSeed()
public int getSpawnX()
public int getSpawnY()
public int getSpawnZ()
public long getWorldTotalTime()
getWorldTotalTime in class WorldInfopublic long getWorldTime()
getWorldTime in class WorldInfopublic long getSizeOnDisk()
getSizeOnDisk in class WorldInfopublic NBTTagCompound getPlayerNBTTagCompound()
getPlayerNBTTagCompound in class WorldInfopublic java.lang.String getWorldName()
getWorldName in class WorldInfopublic int getSaveVersion()
getSaveVersion in class WorldInfopublic long getLastTimePlayed()
getLastTimePlayed in class WorldInfopublic boolean isThundering()
isThundering in class WorldInfopublic int getThunderTime()
getThunderTime in class WorldInfopublic boolean isRaining()
public int getRainTime()
getRainTime in class WorldInfopublic GameType getGameType()
getGameType in class WorldInfopublic void setSpawnX(int x)
public void setSpawnY(int y)
public void setWorldTotalTime(long time)
setWorldTotalTime in class WorldInfopublic void setSpawnZ(int z)
public void setWorldTime(long time)
setWorldTime in class WorldInfopublic void setWorldName(java.lang.String worldName)
setWorldName in class WorldInfopublic void setSaveVersion(int version)
setSaveVersion in class WorldInfopublic void setThundering(boolean thunderingIn)
setThundering in class WorldInfopublic void setThunderTime(int time)
setThunderTime in class WorldInfopublic void setRaining(boolean isRaining)
setRaining in class WorldInfopublic void setRainTime(int time)
setRainTime in class WorldInfopublic boolean isMapFeaturesEnabled()
isMapFeaturesEnabled in class WorldInfopublic boolean isHardcoreModeEnabled()
isHardcoreModeEnabled in class WorldInfopublic WorldType getTerrainType()
getTerrainType in class WorldInfopublic void setTerrainType(WorldType type)
setTerrainType in class WorldInfopublic boolean areCommandsAllowed()
areCommandsAllowed in class WorldInfopublic void setAllowCommands(boolean allow)
setAllowCommands in class WorldInfopublic boolean isInitialized()
isInitialized in class WorldInfopublic void setServerInitialized(boolean initializedIn)
setServerInitialized in class WorldInfopublic GameRules getGameRulesInstance()
getGameRulesInstance in class WorldInfopublic EnumDifficulty getDifficulty()
getDifficulty in class WorldInfopublic void setDifficulty(EnumDifficulty newDifficulty)
setDifficulty in class WorldInfopublic boolean isDifficultyLocked()
isDifficultyLocked in class WorldInfopublic 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 WorldInfopublic void setDimensionData(int dimensionID,
NBTTagCompound compound)
setDimensionData in class WorldInfopublic NBTTagCompound getDimensionData(int dimensionID)
getDimensionData in class WorldInfo