public final class WorldSettings
extends java.lang.Object
Constructor and Description |
---|
WorldSettings(long seedIn,
GameType gameType,
boolean enableMapFeatures,
boolean hardcoreMode,
WorldType worldTypeIn) |
WorldSettings(WorldInfo info) |
Modifier and Type | Method and Description |
---|---|
boolean |
areCommandsAllowed()
Returns true if Commands (cheats) are allowed.
|
WorldSettings |
enableBonusChest()
Enables the bonus chest.
|
WorldSettings |
enableCommands()
Enables Commands (cheats).
|
GameType |
getGameType()
Gets the game type.
|
static GameType |
getGameTypeById(int id)
Gets the GameType by ID
|
java.lang.String |
getGeneratorOptions() |
boolean |
getHardcoreEnabled()
Returns true if hardcore mode is enabled, otherwise false
|
long |
getSeed()
Returns the seed for the world.
|
WorldType |
getTerrainType() |
boolean |
isBonusChestEnabled()
Returns true if the Bonus Chest is enabled.
|
boolean |
isMapFeaturesEnabled()
Get whether the map features (e.g.
|
WorldSettings |
setGeneratorOptions(java.lang.String options) |
public WorldSettings(long seedIn, GameType gameType, boolean enableMapFeatures, boolean hardcoreMode, WorldType worldTypeIn)
public WorldSettings(WorldInfo info)
public WorldSettings enableBonusChest()
public WorldSettings setGeneratorOptions(java.lang.String options)
public WorldSettings enableCommands()
public boolean isBonusChestEnabled()
public long getSeed()
public GameType getGameType()
public boolean getHardcoreEnabled()
public boolean isMapFeaturesEnabled()
public WorldType getTerrainType()
public boolean areCommandsAllowed()
public static GameType getGameTypeById(int id)
public java.lang.String getGeneratorOptions()