Class DerivedWorldInfo

java.lang.Object
net.minecraft.src.WorldInfo
net.minecraft.src.DerivedWorldInfo

public class DerivedWorldInfo extends WorldInfo
  • Constructor Details

    • DerivedWorldInfo

      public DerivedWorldInfo(WorldInfo par1WorldInfo)
  • Method Details

    • getNBTTagCompound

      public NBTTagCompound getNBTTagCompound()
      Gets the NBTTagCompound for the worldInfo
      Overrides:
      getNBTTagCompound in class WorldInfo
    • cloneNBTCompound

      public NBTTagCompound cloneNBTCompound(NBTTagCompound par1NBTTagCompound)
      Creates a new NBTTagCompound for the world, with the given NBTTag as the "Player"
      Overrides:
      cloneNBTCompound in class WorldInfo
    • getSeed

      public long getSeed()
      Returns the seed of current world.
      Overrides:
      getSeed in class WorldInfo
    • getSpawnX

      public int getSpawnX()
      Returns the x spawn position
      Overrides:
      getSpawnX in class WorldInfo
    • getSpawnY

      public int getSpawnY()
      Return the Y axis spawning point of the player.
      Overrides:
      getSpawnY in class WorldInfo
    • getSpawnZ

      public int getSpawnZ()
      Returns the z spawn position
      Overrides:
      getSpawnZ in class WorldInfo
    • getWorldTotalTime

      public long getWorldTotalTime()
      Overrides:
      getWorldTotalTime in class WorldInfo
    • getWorldTime

      public long getWorldTime()
      Get current world time
      Overrides:
      getWorldTime in class WorldInfo
    • getSizeOnDisk

      public long getSizeOnDisk()
      Overrides:
      getSizeOnDisk in class WorldInfo
    • getPlayerNBTTagCompound

      public NBTTagCompound getPlayerNBTTagCompound()
      Returns the player's NBTTagCompound to be loaded
      Overrides:
      getPlayerNBTTagCompound in class WorldInfo
    • 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:
      getVanillaDimension in class WorldInfo
    • getWorldName

      public String getWorldName()
      Get current world name
      Overrides:
      getWorldName in class WorldInfo
    • getSaveVersion

      public int getSaveVersion()
      Returns the save version of this world
      Overrides:
      getSaveVersion in class WorldInfo
    • getLastTimePlayed

      public long getLastTimePlayed()
      Return the last time the player was in this world.
      Overrides:
      getLastTimePlayed in class WorldInfo
    • isThundering

      public boolean isThundering()
      Returns true if it is thundering, false otherwise.
      Overrides:
      isThundering in class WorldInfo
    • getThunderTime

      public int getThunderTime()
      Returns the number of ticks until next thunderbolt.
      Overrides:
      getThunderTime in class WorldInfo
    • isRaining

      public boolean isRaining()
      Returns true if it is raining, false otherwise.
      Overrides:
      isRaining in class WorldInfo
    • getRainTime

      public int getRainTime()
      Return the number of ticks until rain.
      Overrides:
      getRainTime in class WorldInfo
    • getGameType

      public EnumGameType getGameType()
      Gets the GameType.
      Overrides:
      getGameType in class WorldInfo
    • setSpawnX

      public void setSpawnX(int par1)
      Set the x spawn position to the passed in value
      Overrides:
      setSpawnX in class WorldInfo
    • setSpawnY

      public void setSpawnY(int par1)
      Sets the y spawn position
      Overrides:
      setSpawnY in class WorldInfo
    • setSpawnZ

      public void setSpawnZ(int par1)
      Set the z spawn position to the passed in value
      Overrides:
      setSpawnZ in class WorldInfo
    • incrementTotalWorldTime

      public void incrementTotalWorldTime(long par1)
      Overrides:
      incrementTotalWorldTime in class WorldInfo
    • setWorldTime

      public void setWorldTime(long par1)
      Set current world time
      Overrides:
      setWorldTime in class WorldInfo
    • setSpawnPosition

      public void setSpawnPosition(int par1, int par2, int par3)
      Sets the spawn zone position. Args: x, y, z
      Overrides:
      setSpawnPosition in class WorldInfo
    • setWorldName

      public void setWorldName(String par1Str)
      Overrides:
      setWorldName in class WorldInfo
    • setSaveVersion

      public void setSaveVersion(int par1)
      Sets the save version of the world
      Overrides:
      setSaveVersion in class WorldInfo
    • setThundering

      public void setThundering(boolean par1)
      Sets whether it is thundering or not.
      Overrides:
      setThundering in class WorldInfo
    • setThunderTime

      public void setThunderTime(int par1)
      Defines the number of ticks until next thunderbolt.
      Overrides:
      setThunderTime in class WorldInfo
    • setRaining

      public void setRaining(boolean par1)
      Sets whether it is raining or not.
      Overrides:
      setRaining in class WorldInfo
    • setRainTime

      public void setRainTime(int par1)
      Sets the number of ticks until rain.
      Overrides:
      setRainTime in class WorldInfo
    • isMapFeaturesEnabled

      public boolean isMapFeaturesEnabled()
      Get whether the map features (e.g. strongholds) generation is enabled or disabled.
      Overrides:
      isMapFeaturesEnabled in class WorldInfo
    • isHardcoreModeEnabled

      public boolean isHardcoreModeEnabled()
      Returns true if hardcore mode is enabled, otherwise false
      Overrides:
      isHardcoreModeEnabled in class WorldInfo
    • getTerrainType

      public WorldType getTerrainType()
      Overrides:
      getTerrainType in class WorldInfo
    • setTerrainType

      public void setTerrainType(WorldType par1WorldType)
      Overrides:
      setTerrainType in class WorldInfo
    • areCommandsAllowed

      public boolean areCommandsAllowed()
      Returns true if commands are allowed on this World.
      Overrides:
      areCommandsAllowed in class WorldInfo
    • isInitialized

      public boolean isInitialized()
      Returns true if the World is initialized.
      Overrides:
      isInitialized in class WorldInfo
    • setServerInitialized

      public void setServerInitialized(boolean par1)
      Sets the initialization status of the World.
      Overrides:
      setServerInitialized in class WorldInfo
    • getGameRulesInstance

      public GameRules getGameRulesInstance()
      Gets the GameRules class Instance.
      Overrides:
      getGameRulesInstance in class WorldInfo
    • getDifficulty

      public Difficulty getDifficulty()
      Overrides:
      getDifficulty in class WorldInfo