Package net.minecraft.src
Class WorldSettings
java.lang.Object
net.minecraft.src.WorldSettings
-
Constructor Summary
ConstructorsConstructorDescriptionWorldSettings(long par1, EnumGameType par3EnumGameType, boolean par4, boolean par5, WorldType par6WorldType) Deprecated.WorldSettings(long par1, EnumGameType par3EnumGameType, boolean par4, boolean par5, WorldType par6WorldType, Difficulty difficulty, boolean isDifficultyLocked) WorldSettings(WorldInfo par1WorldInfo) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if Commands (cheats) are allowed.Disables Commands (cheats).Enables the bonus chest.Enables Commands (cheats).func_82750_a(String par1Str) Gets the game type.static EnumGameTypegetGameTypeById(int par0) Gets the GameType by IDbooleanReturns true if hardcore mode is enabled, otherwise falselonggetSeed()Returns the seed for the world.booleanReturns true if the Bonus Chest is enabled.booleanbooleanGet whether the map features (e.g. strongholds) generation is enabled or disabled.
-
Constructor Details
-
WorldSettings
@Deprecated public WorldSettings(long par1, EnumGameType par3EnumGameType, boolean par4, boolean par5, WorldType par6WorldType) Deprecated. -
WorldSettings
public WorldSettings(long par1, EnumGameType par3EnumGameType, boolean par4, boolean par5, WorldType par6WorldType, Difficulty difficulty, boolean isDifficultyLocked) -
WorldSettings
-
-
Method Details
-
enableBonusChest
Enables the bonus chest. -
enableCommands
Enables Commands (cheats). -
disableCommands
Disables Commands (cheats). -
func_82750_a
-
isBonusChestEnabled
public boolean isBonusChestEnabled()Returns true if the Bonus Chest is enabled. -
getSeed
public long getSeed()Returns the seed for the world. -
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
-
areCommandsAllowed
public boolean areCommandsAllowed()Returns true if Commands (cheats) are allowed. -
getGameTypeById
Gets the GameType by ID -
getDifficulty
-
func_82749_j
-
isDifficultyLocked
public boolean isDifficultyLocked()
-