public class DerivedWorldInfo extends WorldInfo
| Constructor and Description |
|---|
DerivedWorldInfo(WorldInfo p_i2145_1_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areCommandsAllowed()
Returns true if commands are allowed on this World.
|
NBTTagCompound |
cloneNBTCompound(NBTTagCompound p_76082_1_)
Creates a new NBTTagCompound for the world, with the given NBTTag as the "Player"
|
GameRules |
getGameRulesInstance()
Gets the GameRules class Instance.
|
WorldSettings.GameType |
getGameType()
Gets the GameType.
|
long |
getLastTimePlayed()
Return the last time the player was in this world.
|
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.
|
int |
getVanillaDimension()
Returns vanilla MC dimension (-1,0,1).
|
java.lang.String |
getWorldName()
Get current world name
|
long |
getWorldTime()
Get current world time
|
long |
getWorldTotalTime() |
void |
incrementTotalWorldTime(long p_82572_1_) |
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. strongholds) generation is enabled or disabled.
|
boolean |
isRaining()
Returns true if it is raining, false otherwise.
|
boolean |
isThundering()
Returns true if it is thundering, false otherwise.
|
void |
setRaining(boolean p_76084_1_)
Sets whether it is raining or not.
|
void |
setRainTime(int p_76080_1_)
Sets the number of ticks until rain.
|
void |
setSaveVersion(int p_76078_1_)
Sets the save version of the world
|
void |
setServerInitialized(boolean p_76091_1_)
Sets the initialization status of the World.
|
void |
setSpawnPosition(int p_76081_1_,
int p_76081_2_,
int p_76081_3_)
Sets the spawn zone position.
|
void |
setSpawnX(int p_76058_1_)
Set the x spawn position to the passed in value
|
void |
setSpawnY(int p_76056_1_)
Sets the y spawn position
|
void |
setSpawnZ(int p_76087_1_)
Set the z spawn position to the passed in value
|
void |
setTerrainType(WorldType p_76085_1_) |
void |
setThundering(boolean p_76069_1_)
Sets whether it is thundering or not.
|
void |
setThunderTime(int p_76090_1_)
Defines the number of ticks until next thunderbolt.
|
void |
setWorldName(java.lang.String p_76062_1_) |
void |
setWorldTime(long p_76068_1_)
Set current world time
|
addToCrashReport, getAdditionalProperty, getGeneratorOptions, setAdditionalProperties, setGameTypepublic DerivedWorldInfo(WorldInfo p_i2145_1_)
public NBTTagCompound getNBTTagCompound()
getNBTTagCompound in class WorldInfopublic NBTTagCompound cloneNBTCompound(NBTTagCompound p_76082_1_)
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 getVanillaDimension()
getVanillaDimension 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 WorldSettings.GameType getGameType()
getGameType in class WorldInfopublic void setSpawnX(int p_76058_1_)
public void setSpawnY(int p_76056_1_)
public void incrementTotalWorldTime(long p_82572_1_)
incrementTotalWorldTime in class WorldInfopublic void setSpawnZ(int p_76087_1_)
public void setWorldTime(long p_76068_1_)
setWorldTime in class WorldInfopublic void setSpawnPosition(int p_76081_1_,
int p_76081_2_,
int p_76081_3_)
setSpawnPosition in class WorldInfopublic void setWorldName(java.lang.String p_76062_1_)
setWorldName in class WorldInfopublic void setSaveVersion(int p_76078_1_)
setSaveVersion in class WorldInfopublic void setThundering(boolean p_76069_1_)
setThundering in class WorldInfopublic void setThunderTime(int p_76090_1_)
setThunderTime in class WorldInfopublic void setRaining(boolean p_76084_1_)
setRaining in class WorldInfopublic void setRainTime(int p_76080_1_)
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 p_76085_1_)
setTerrainType in class WorldInfopublic boolean areCommandsAllowed()
areCommandsAllowed in class WorldInfopublic boolean isInitialized()
isInitialized in class WorldInfopublic void setServerInitialized(boolean p_76091_1_)
setServerInitialized in class WorldInfopublic GameRules getGameRulesInstance()
getGameRulesInstance in class WorldInfo