Package net.minecraft.src
Class DerivedWorldInfo
java.lang.Object
net.minecraft.src.WorldInfo
net.minecraft.src.DerivedWorldInfo
-
Field Summary
Fields inherited from class net.minecraft.src.WorldInfo
dataStorage, previouslyRaining, previouslyThundering -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if commands are allowed on this World.cloneNBTCompound(NBTTagCompound par1NBTTagCompound) Creates a new NBTTagCompound for the world, with the given NBTTag as the "Player"Gets the GameRules class Instance.Gets the GameType.longReturn the last time the player was in this world.Gets the NBTTagCompound for the worldInfoReturns the player's NBTTagCompound to be loadedintReturn the number of ticks until rain.intReturns the save version of this worldlonggetSeed()Returns the seed of current world.longintReturns the x spawn positionintReturn the Y axis spawning point of the player.intReturns the z spawn positionintReturns the number of ticks until next thunderbolt.intReturns vanilla MC dimension (-1,0,1).Get current world namelongGet current world timelongvoidincrementTotalWorldTime(long par1) booleanReturns true if hardcore mode is enabled, otherwise falsebooleanReturns true if the World is initialized.booleanGet whether the map features (e.g. strongholds) generation is enabled or disabled.booleanReturns true if it is raining, false otherwise.booleanReturns true if it is thundering, false otherwise.voidsetRaining(boolean par1) Sets whether it is raining or not.voidsetRainTime(int par1) Sets the number of ticks until rain.voidsetSaveVersion(int par1) Sets the save version of the worldvoidsetServerInitialized(boolean par1) Sets the initialization status of the World.voidsetSpawnPosition(int par1, int par2, int par3) Sets the spawn zone position.voidsetSpawnX(int par1) Set the x spawn position to the passed in valuevoidsetSpawnY(int par1) Sets the y spawn positionvoidsetSpawnZ(int par1) Set the z spawn position to the passed in valuevoidsetTerrainType(WorldType par1WorldType) voidsetThundering(boolean par1) Sets whether it is thundering or not.voidsetThunderTime(int par1) Defines the number of ticks until next thunderbolt.voidsetWorldName(String par1Str) voidsetWorldTime(long par1) Set current world timeMethods inherited from class net.minecraft.src.WorldInfo
addToCrashReport, getData, getGeneratorOptions, getGlobalEnderChestInventory, setData, setDifficulty, setGameRules, setGameType, setGlobalEnderChestInventory, setHardcoreModeEnabled
-
Constructor Details
-
DerivedWorldInfo
-
-
Method Details
-
getNBTTagCompound
Gets the NBTTagCompound for the worldInfo- Overrides:
getNBTTagCompoundin classWorldInfo
-
cloneNBTCompound
Creates a new NBTTagCompound for the world, with the given NBTTag as the "Player"- Overrides:
cloneNBTCompoundin classWorldInfo
-
getSeed
public long getSeed()Returns the seed of current world. -
getSpawnX
public int getSpawnX()Returns the x spawn position -
getSpawnY
public int getSpawnY()Return the Y axis spawning point of the player. -
getSpawnZ
public int getSpawnZ()Returns the z spawn position -
getWorldTotalTime
public long getWorldTotalTime()- Overrides:
getWorldTotalTimein classWorldInfo
-
getWorldTime
public long getWorldTime()Get current world time- Overrides:
getWorldTimein classWorldInfo
-
getSizeOnDisk
public long getSizeOnDisk()- Overrides:
getSizeOnDiskin classWorldInfo
-
getPlayerNBTTagCompound
Returns the player's NBTTagCompound to be loaded- Overrides:
getPlayerNBTTagCompoundin classWorldInfo
-
getVanillaDimension
public int getVanillaDimension()Returns vanilla MC dimension (-1,0,1). For custom dimension compatibility, always prefer WorldProvider.dimensionID accessed from World.provider.dimensionID- Overrides:
getVanillaDimensionin classWorldInfo
-
getWorldName
Get current world name- Overrides:
getWorldNamein classWorldInfo
-
getSaveVersion
public int getSaveVersion()Returns the save version of this world- Overrides:
getSaveVersionin classWorldInfo
-
getLastTimePlayed
public long getLastTimePlayed()Return the last time the player was in this world.- Overrides:
getLastTimePlayedin classWorldInfo
-
isThundering
public boolean isThundering()Returns true if it is thundering, false otherwise.- Overrides:
isThunderingin classWorldInfo
-
getThunderTime
public int getThunderTime()Returns the number of ticks until next thunderbolt.- Overrides:
getThunderTimein classWorldInfo
-
isRaining
public boolean isRaining()Returns true if it is raining, false otherwise. -
getRainTime
public int getRainTime()Return the number of ticks until rain.- Overrides:
getRainTimein classWorldInfo
-
getGameType
Gets the GameType.- Overrides:
getGameTypein classWorldInfo
-
setSpawnX
public void setSpawnX(int par1) Set the x spawn position to the passed in value -
setSpawnY
public void setSpawnY(int par1) Sets the y spawn position -
setSpawnZ
public void setSpawnZ(int par1) Set the z spawn position to the passed in value -
incrementTotalWorldTime
public void incrementTotalWorldTime(long par1) - Overrides:
incrementTotalWorldTimein classWorldInfo
-
setWorldTime
public void setWorldTime(long par1) Set current world time- Overrides:
setWorldTimein classWorldInfo
-
setSpawnPosition
public void setSpawnPosition(int par1, int par2, int par3) Sets the spawn zone position. Args: x, y, z- Overrides:
setSpawnPositionin classWorldInfo
-
setWorldName
- Overrides:
setWorldNamein classWorldInfo
-
setSaveVersion
public void setSaveVersion(int par1) Sets the save version of the world- Overrides:
setSaveVersionin classWorldInfo
-
setThundering
public void setThundering(boolean par1) Sets whether it is thundering or not.- Overrides:
setThunderingin classWorldInfo
-
setThunderTime
public void setThunderTime(int par1) Defines the number of ticks until next thunderbolt.- Overrides:
setThunderTimein classWorldInfo
-
setRaining
public void setRaining(boolean par1) Sets whether it is raining or not.- Overrides:
setRainingin classWorldInfo
-
setRainTime
public void setRainTime(int par1) Sets the number of ticks until rain.- Overrides:
setRainTimein classWorldInfo
-
isMapFeaturesEnabled
public boolean isMapFeaturesEnabled()Get whether the map features (e.g. strongholds) generation is enabled or disabled.- Overrides:
isMapFeaturesEnabledin classWorldInfo
-
isHardcoreModeEnabled
public boolean isHardcoreModeEnabled()Returns true if hardcore mode is enabled, otherwise false- Overrides:
isHardcoreModeEnabledin classWorldInfo
-
getTerrainType
- Overrides:
getTerrainTypein classWorldInfo
-
setTerrainType
- Overrides:
setTerrainTypein classWorldInfo
-
areCommandsAllowed
public boolean areCommandsAllowed()Returns true if commands are allowed on this World.- Overrides:
areCommandsAllowedin classWorldInfo
-
isInitialized
public boolean isInitialized()Returns true if the World is initialized.- Overrides:
isInitializedin classWorldInfo
-
setServerInitialized
public void setServerInitialized(boolean par1) Sets the initialization status of the World.- Overrides:
setServerInitializedin classWorldInfo
-
getGameRulesInstance
Gets the GameRules class Instance.- Overrides:
getGameRulesInstancein classWorldInfo
-
getDifficulty
- Overrides:
getDifficultyin classWorldInfo
-