public class WorldInfo
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
WorldInfo() |
|
WorldInfo(NBTTagCompound p_i2157_1_) |
|
WorldInfo(WorldInfo p_i2159_1_) |
|
WorldInfo(WorldSettings p_i2158_1_,
java.lang.String p_i2158_2_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCrashReport(CrashReportCategory p_85118_1_)
Adds this WorldInfo instance to the crash report.
|
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"
|
NBTBase |
getAdditionalProperty(java.lang.String additionalProperty) |
GameRules |
getGameRulesInstance()
Gets the GameRules class Instance.
|
WorldSettings.GameType |
getGameType()
Gets the GameType.
|
java.lang.String |
getGeneratorOptions() |
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 |
setAdditionalProperties(java.util.Map<java.lang.String,NBTBase> additionalProperties)
Allow access to additional mod specific world based properties
Used by FML to store mod list associated with a world, and maybe an id map
Used by Forge to store the dimensions available to a world
|
void |
setGameType(WorldSettings.GameType p_76060_1_)
Sets the GameType.
|
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
|
protected WorldInfo()
public WorldInfo(NBTTagCompound p_i2157_1_)
public WorldInfo(WorldSettings p_i2158_1_, java.lang.String p_i2158_2_)
public WorldInfo(WorldInfo p_i2159_1_)
public NBTTagCompound getNBTTagCompound()
public NBTTagCompound cloneNBTCompound(NBTTagCompound p_76082_1_)
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 int getVanillaDimension()
public void setSpawnX(int p_76058_1_)
public void setSpawnY(int p_76056_1_)
public void incrementTotalWorldTime(long p_82572_1_)
public void setSpawnZ(int p_76087_1_)
public void setWorldTime(long p_76068_1_)
public void setSpawnPosition(int p_76081_1_,
int p_76081_2_,
int p_76081_3_)
public java.lang.String getWorldName()
public void setWorldName(java.lang.String p_76062_1_)
public int getSaveVersion()
public void setSaveVersion(int p_76078_1_)
public long getLastTimePlayed()
public boolean isThundering()
public void setThundering(boolean p_76069_1_)
public int getThunderTime()
public void setThunderTime(int p_76090_1_)
public boolean isRaining()
public void setRaining(boolean p_76084_1_)
public int getRainTime()
public void setRainTime(int p_76080_1_)
public WorldSettings.GameType getGameType()
public boolean isMapFeaturesEnabled()
public void setGameType(WorldSettings.GameType p_76060_1_)
public boolean isHardcoreModeEnabled()
public WorldType getTerrainType()
public void setTerrainType(WorldType p_76085_1_)
public java.lang.String getGeneratorOptions()
public boolean areCommandsAllowed()
public boolean isInitialized()
public void setServerInitialized(boolean p_76091_1_)
public GameRules getGameRulesInstance()
public void addToCrashReport(CrashReportCategory p_85118_1_)
public void setAdditionalProperties(java.util.Map<java.lang.String,NBTBase> additionalProperties)
additionalProperties - public NBTBase getAdditionalProperty(java.lang.String additionalProperty)