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"
|
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.
|
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 |
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, setGameType
public DerivedWorldInfo(WorldInfo par1WorldInfo)
public NBTTagCompound getNBTTagCompound()
getNBTTagCompound
in class WorldInfo
public NBTTagCompound cloneNBTCompound(NBTTagCompound par1NBTTagCompound)
cloneNBTCompound
in class WorldInfo
public long getSeed()
public int getSpawnX()
public int getSpawnY()
public int getSpawnZ()
public long getWorldTotalTime()
getWorldTotalTime
in class WorldInfo
public long getWorldTime()
getWorldTime
in class WorldInfo
public long getSizeOnDisk()
getSizeOnDisk
in class WorldInfo
public NBTTagCompound getPlayerNBTTagCompound()
getPlayerNBTTagCompound
in class WorldInfo
public int getVanillaDimension()
getVanillaDimension
in class WorldInfo
public String getWorldName()
getWorldName
in class WorldInfo
public int getSaveVersion()
getSaveVersion
in class WorldInfo
public long getLastTimePlayed()
getLastTimePlayed
in class WorldInfo
public boolean isThundering()
isThundering
in class WorldInfo
public int getThunderTime()
getThunderTime
in class WorldInfo
public boolean isRaining()
public int getRainTime()
getRainTime
in class WorldInfo
public EnumGameType getGameType()
getGameType
in class WorldInfo
public void incrementTotalWorldTime(long par1)
incrementTotalWorldTime
in class WorldInfo
public void setWorldTime(long par1)
setWorldTime
in class WorldInfo
public void setSpawnPosition(int par1, int par2, int par3)
setSpawnPosition
in class WorldInfo
public void setWorldName(String par1Str)
setWorldName
in class WorldInfo
public void setSaveVersion(int par1)
setSaveVersion
in class WorldInfo
public void setThundering(boolean par1)
setThundering
in class WorldInfo
public void setThunderTime(int par1)
setThunderTime
in class WorldInfo
public void setRaining(boolean par1)
setRaining
in class WorldInfo
public void setRainTime(int par1)
setRainTime
in class WorldInfo
public boolean isMapFeaturesEnabled()
isMapFeaturesEnabled
in class WorldInfo
public boolean isHardcoreModeEnabled()
isHardcoreModeEnabled
in class WorldInfo
public WorldType getTerrainType()
getTerrainType
in class WorldInfo
public void setTerrainType(WorldType par1WorldType)
setTerrainType
in class WorldInfo
public boolean areCommandsAllowed()
areCommandsAllowed
in class WorldInfo
public boolean isInitialized()
isInitialized
in class WorldInfo
public void setServerInitialized(boolean par1)
setServerInitialized
in class WorldInfo
public GameRules getGameRulesInstance()
getGameRulesInstance
in class WorldInfo