public class DerivedWorldInfo extends WorldInfo
| Constructor and Description |
|---|
DerivedWorldInfo(WorldInfo par1WorldInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areCommandsAllowed()
Returns true if commands are allowed on this World.
|
NBTTagCompound |
cloneNBTCompound(NBTTagCompound par1NBTTagCompound)
Creates a new NBTTagCompound for the world, with the given NBTTag as the "Player"
|
int |
getDimension() |
GameRules |
getGameRulesInstance()
Gets the GameRules class Instance.
|
EnumGameType |
getGameType()
Gets the GameType.
|
long |
getLastTimePlayed() |
NBTTagCompound |
getNBTTagCompound()
Gets the NBTTagCompound for the worldInfo
|
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.
|
String |
getWorldName()
Get current world name
|
long |
getWorldTime()
Get current world time
|
long |
getWorldTotalTime() |
void |
incrementTotalWorldTime(long par1) |
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 |
setRaining(boolean par1)
Sets whether it is raining or not.
|
void |
setRainTime(int par1)
Sets the number of ticks until rain.
|
void |
setSaveVersion(int par1)
Sets the save version of the world
|
void |
setServerInitialized(boolean par1)
Sets the initialization status of the World.
|
void |
setSpawnPosition(int par1,
int par2,
int par3)
Sets the spawn zone position.
|
void |
setSpawnX(int par1) |
void |
setSpawnY(int par1) |
void |
setSpawnZ(int par1) |
void |
setTerrainType(WorldType par1WorldType) |
void |
setThundering(boolean par1)
Sets whether it is thundering or not.
|
void |
setThunderTime(int par1)
Defines the number of ticks until next thunderbolt.
|
void |
setWorldName(String par1Str) |
void |
setWorldTime(long par1)
Set current world time
|
addToCrashReport, getAdditionalProperty, getGeneratorOptions, setAdditionalProperties, setGameTypepublic DerivedWorldInfo(WorldInfo par1WorldInfo)
public NBTTagCompound getNBTTagCompound()
getNBTTagCompound in class WorldInfopublic NBTTagCompound cloneNBTCompound(NBTTagCompound par1NBTTagCompound)
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 int getDimension()
getDimension in class WorldInfopublic 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 EnumGameType getGameType()
getGameType in class WorldInfopublic void incrementTotalWorldTime(long par1)
incrementTotalWorldTime in class WorldInfopublic void setWorldTime(long par1)
setWorldTime in class WorldInfopublic void setSpawnPosition(int par1,
int par2,
int par3)
setSpawnPosition in class WorldInfopublic void setWorldName(String par1Str)
setWorldName in class WorldInfopublic void setSaveVersion(int par1)
setSaveVersion in class WorldInfopublic void setThundering(boolean par1)
setThundering in class WorldInfopublic void setThunderTime(int par1)
setThunderTime in class WorldInfopublic void setRaining(boolean par1)
setRaining in class WorldInfopublic void setRainTime(int par1)
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 par1WorldType)
setTerrainType in class WorldInfopublic boolean areCommandsAllowed()
areCommandsAllowed in class WorldInfopublic boolean isInitialized()
isInitialized in class WorldInfopublic void setServerInitialized(boolean par1)
setServerInitialized in class WorldInfopublic GameRules getGameRulesInstance()
getGameRulesInstance in class WorldInfo