public class WorldInfo extends Object
Constructor and Description |
---|
WorldInfo(NBTTagCompound par1NBTTagCompound) |
WorldInfo(WorldInfo par1WorldInfo) |
WorldInfo(WorldSettings par1WorldSettings,
String par2Str) |
Modifier and Type | Method and Description |
---|---|
void |
addToCrashReport(CrashReportCategory par1CrashReportCategory)
Adds this WorldInfo instance to the crash report.
|
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"
|
NBTBase |
getAdditionalProperty(String additionalProperty) |
GameRules |
getGameRulesInstance()
Gets the GameRules class Instance.
|
EnumGameType |
getGameType()
Gets the GameType.
|
String |
getGeneratorOptions() |
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.
|
int |
getVanillaDimension()
Returns vanilla MC dimension (-1,0,1).
|
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 |
setAdditionalProperties(Map<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(EnumGameType par1EnumGameType)
Sets the GameType.
|
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
|
public WorldInfo(NBTTagCompound par1NBTTagCompound)
public WorldInfo(WorldSettings par1WorldSettings, String par2Str)
public WorldInfo(WorldInfo par1WorldInfo)
public NBTTagCompound getNBTTagCompound()
public NBTTagCompound cloneNBTCompound(NBTTagCompound par1NBTTagCompound)
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 par1)
public void setSpawnY(int par1)
public void incrementTotalWorldTime(long par1)
public void setSpawnZ(int par1)
public void setWorldTime(long par1)
public void setSpawnPosition(int par1, int par2, int par3)
public String getWorldName()
public void setWorldName(String par1Str)
public int getSaveVersion()
public void setSaveVersion(int par1)
public long getLastTimePlayed()
public boolean isThundering()
public void setThundering(boolean par1)
public int getThunderTime()
public void setThunderTime(int par1)
public boolean isRaining()
public void setRaining(boolean par1)
public int getRainTime()
public void setRainTime(int par1)
public EnumGameType getGameType()
public boolean isMapFeaturesEnabled()
public void setGameType(EnumGameType par1EnumGameType)
public boolean isHardcoreModeEnabled()
public WorldType getTerrainType()
public void setTerrainType(WorldType par1WorldType)
public String getGeneratorOptions()
public boolean areCommandsAllowed()
public boolean isInitialized()
public void setServerInitialized(boolean par1)
public GameRules getGameRulesInstance()
public void addToCrashReport(CrashReportCategory par1CrashReportCategory)
public void setAdditionalProperties(Map<String,NBTBase> additionalProperties)
additionalProperties
-