net.minecraft.world.storage

## Class WorldInfo

- java.lang.Object
- - net.minecraft.world.storage.WorldInfo

- Direct Known Subclasses:
    DerivedWorldInfo

      public class WorldInfo
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `WorldInfo()`
    `` | `WorldInfo(NBTTagCompound par1NBTTagCompound)`
    `` | `WorldInfo(WorldInfo par1WorldInfo)`
    `` | `WorldInfo(WorldSettings par1WorldSettings, java.lang.String par2Str)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addToCrashReport(CrashReportCategory par1CrashReportCategory)`
    `boolean` | `areCommandsAllowed()`
    `NBTTagCompound` | `cloneNBTCompound(NBTTagCompound par1NBTTagCompound)`
    `NBTBase` | `getAdditionalProperty(java.lang.String additionalProperty)`
    `GameRules` | `getGameRulesInstance()`
    `WorldSettings.GameType` | `getGameType()`
    `java.lang.String` | `getGeneratorOptions()`
    `long` | `getLastTimePlayed()`
    `NBTTagCompound` | `getNBTTagCompound()`
    `NBTTagCompound` | `getPlayerNBTTagCompound()`
    `int` | `getRainTime()`
    `int` | `getSaveVersion()`
    `long` | `getSeed()`
    `long` | `getSizeOnDisk()`
    `int` | `getSpawnX()`
    `int` | `getSpawnY()`
    `int` | `getSpawnZ()`
    `WorldType` | `getTerrainType()`
    `int` | `getThunderTime()`
    `int` | `getVanillaDimension()`
    `java.lang.String` | `getWorldName()`
    `long` | `getWorldTime()`
    `long` | `getWorldTotalTime()`
    `void` | `incrementTotalWorldTime(long par1)`
    `boolean` | `isHardcoreModeEnabled()`
    `boolean` | `isInitialized()`
    `boolean` | `isMapFeaturesEnabled()`
    `boolean` | `isRaining()`
    `boolean` | `isThundering()`
    `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 par1EnumGameType)`
    `void` | `setRaining(boolean par1)`
    `void` | `setRainTime(int par1)`
    `void` | `setSaveVersion(int par1)`
    `void` | `setServerInitialized(boolean par1)`
    `void` | `setSpawnPosition(int par1, int par2, int par3)`
    `void` | `setSpawnX(int par1)`
    `void` | `setSpawnY(int par1)`
    `void` | `setSpawnZ(int par1)`
    `void` | `setTerrainType(WorldType par1WorldType)`
    `void` | `setThundering(boolean par1)`
    `void` | `setThunderTime(int par1)`
    `void` | `setWorldName(java.lang.String par1Str)`
    `void` | `setWorldTime(long par1)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### WorldInfo

          protected WorldInfo()

    - #### WorldInfo

          public WorldInfo(NBTTagCompound par1NBTTagCompound)

    - #### WorldInfo

          public WorldInfo(WorldSettings par1WorldSettings,
                   java.lang.String par2Str)

    - #### WorldInfo

          public WorldInfo(WorldInfo par1WorldInfo)

  - ### Method Detail

    - #### getNBTTagCompound

          public NBTTagCompound getNBTTagCompound()

    - #### cloneNBTCompound

          public NBTTagCompound cloneNBTCompound(NBTTagCompound par1NBTTagCompound)

    - #### getSeed

          public long getSeed()

    - #### getSpawnX

          public int getSpawnX()

    - #### getSpawnY

          public int getSpawnY()

    - #### getSpawnZ

          public int getSpawnZ()

    - #### getWorldTotalTime

          public long getWorldTotalTime()

    - #### getWorldTime

          public long getWorldTime()

    - #### getSizeOnDisk

          public long getSizeOnDisk()

    - #### getPlayerNBTTagCompound

          public NBTTagCompound getPlayerNBTTagCompound()

    - #### getVanillaDimension

          public int getVanillaDimension()

    - #### setSpawnX

          public void setSpawnX(int par1)

    - #### setSpawnY

          public void setSpawnY(int par1)

    - #### incrementTotalWorldTime

          public void incrementTotalWorldTime(long par1)

    - #### setSpawnZ

          public void setSpawnZ(int par1)

    - #### setWorldTime

          public void setWorldTime(long par1)

    - #### setSpawnPosition

          public void setSpawnPosition(int par1,
                              int par2,
                              int par3)

    - #### getWorldName

          public java.lang.String getWorldName()

    - #### setWorldName

          public void setWorldName(java.lang.String par1Str)

    - #### getSaveVersion

          public int getSaveVersion()

    - #### setSaveVersion

          public void setSaveVersion(int par1)

    - #### getLastTimePlayed

          public long getLastTimePlayed()

    - #### isThundering

          public boolean isThundering()

    - #### setThundering

          public void setThundering(boolean par1)

    - #### getThunderTime

          public int getThunderTime()

    - #### setThunderTime

          public void setThunderTime(int par1)

    - #### isRaining

          public boolean isRaining()

    - #### setRaining

          public void setRaining(boolean par1)

    - #### getRainTime

          public int getRainTime()

    - #### setRainTime

          public void setRainTime(int par1)

    - #### getGameType

          public WorldSettings.GameType getGameType()

    - #### isMapFeaturesEnabled

          public boolean isMapFeaturesEnabled()

    - #### setGameType

          public void setGameType(WorldSettings.GameType par1EnumGameType)

    - #### isHardcoreModeEnabled

          public boolean isHardcoreModeEnabled()

    - #### getTerrainType

          public WorldType getTerrainType()

    - #### setTerrainType

          public void setTerrainType(WorldType par1WorldType)

    - #### getGeneratorOptions

          public java.lang.String getGeneratorOptions()

    - #### areCommandsAllowed

          public boolean areCommandsAllowed()

    - #### isInitialized

          public boolean isInitialized()

    - #### setServerInitialized

          public void setServerInitialized(boolean par1)

    - #### getGameRulesInstance

          public GameRules getGameRulesInstance()

    - #### addToCrashReport

          public void addToCrashReport(CrashReportCategory par1CrashReportCategory)

    - #### setAdditionalProperties

          public 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
      Parameters:
        `additionalProperties` -

    - #### getAdditionalProperty

          public NBTBase getAdditionalProperty(java.lang.String additionalProperty)