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 classWorldSettings.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 booleanareCommandsAllowed()+ Returns true if Commands (cheats) are allowed.WorldSettingsenableBonusChest()+ Enables the bonus chest.WorldSettingsenableCommands()+ Enables Commands (cheats).WorldSettings.GameTypegetGameType()+ Gets the game type.static WorldSettings.GameTypegetGameTypeById(int id)+ Gets the GameType by IDbooleangetHardcoreEnabled()+ Returns true if hardcore mode is enabled, otherwise falselonggetSeed()+ Returns the seed for the world.WorldTypegetTerrainType()java.lang.StringgetWorldName()booleanisBonusChestEnabled()+ Returns true if the Bonus Chest is enabled.booleanisMapFeaturesEnabled()+ Get whether the map features (e.g.WorldSettingssetWorldName(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()
-
-