Package net.minecraft.world
Class WorldSettings
- java.lang.Object
-
- net.minecraft.world.WorldSettings
-
public final class WorldSettings extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorldSettings.GameType
-
Constructor Summary
Constructors Constructor Description WorldSettings(long seedIn, WorldSettings.GameType gameType, boolean enableMapFeatures, boolean hardcoreMode, WorldType worldTypeIn)
WorldSettings(WorldInfo info)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areCommandsAllowed()
+ Returns true if Commands (cheats) are allowed.WorldSettings
enableBonusChest()
+ Enables the bonus chest.WorldSettings
enableCommands()
+ Enables Commands (cheats).WorldSettings.GameType
getGameType()
+ Gets the game type.static WorldSettings.GameType
getGameTypeById(int id)
+ Gets the GameType by IDboolean
getHardcoreEnabled()
+ Returns true if hardcore mode is enabled, otherwise falselong
getSeed()
+ Returns the seed for the world.WorldType
getTerrainType()
java.lang.String
getWorldName()
boolean
isBonusChestEnabled()
+ Returns true if the Bonus Chest is enabled.boolean
isMapFeaturesEnabled()
+ Get whether the map features (e.g.WorldSettings
setWorldName(java.lang.String name)
-
-
-
Constructor Detail
-
WorldSettings
public WorldSettings(long seedIn, WorldSettings.GameType gameType, boolean enableMapFeatures, boolean hardcoreMode, WorldType worldTypeIn)
-
WorldSettings
public WorldSettings(WorldInfo info)
-
-
Method Detail
-
enableBonusChest
public WorldSettings enableBonusChest()
+ Enables the bonus chest.
-
enableCommands
public WorldSettings enableCommands()
+ Enables Commands (cheats).
-
setWorldName
public WorldSettings setWorldName(java.lang.String name)
-
isBonusChestEnabled
public boolean isBonusChestEnabled()
+ Returns true if the Bonus Chest is enabled.
-
getSeed
public long getSeed()
+ Returns the seed for the world.
-
getGameType
public WorldSettings.GameType getGameType()
+ Gets the game type.
-
getHardcoreEnabled
public boolean getHardcoreEnabled()
+ Returns true if hardcore mode is enabled, otherwise false
-
isMapFeaturesEnabled
public boolean isMapFeaturesEnabled()
+ Get whether the map features (e.g. strongholds) generation is enabled or disabled.
-
getTerrainType
public WorldType getTerrainType()
-
areCommandsAllowed
public boolean areCommandsAllowed()
+ Returns true if Commands (cheats) are allowed.
-
getGameTypeById
public static WorldSettings.GameType getGameTypeById(int id)
+ Gets the GameType by ID
-
getWorldName
public java.lang.String getWorldName()
-
-