public final class WorldSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WorldSettings.GameType |
Modifier and Type | Field and Description |
---|---|
private boolean |
bonusChestEnabled
True if the Bonus Chest is enabled.
|
private boolean |
commandsAllowed
True if Commands (cheats) are allowed.
|
private boolean |
hardcoreEnabled
True if hardcore mode is enabled
|
private boolean |
mapFeaturesEnabled
Switch for the map features.
|
private long |
seed
The seed for the map.
|
private WorldType |
terrainType |
private WorldSettings.GameType |
theGameType
The EnumGameType.
|
private java.lang.String |
worldName |
Constructor and Description |
---|
WorldSettings(long seedIn,
WorldSettings.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).
|
WorldSettings.GameType |
getGameType()
Gets the game type.
|
static WorldSettings.GameType |
getGameTypeById(int id)
Gets the GameType by ID
|
boolean |
getHardcoreEnabled()
Returns true if hardcore mode is enabled, otherwise false
|
long |
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) |
private final long seed
private final WorldSettings.GameType theGameType
private final boolean mapFeaturesEnabled
private final boolean hardcoreEnabled
private final WorldType terrainType
private boolean commandsAllowed
private boolean bonusChestEnabled
private java.lang.String worldName
public WorldSettings(long seedIn, WorldSettings.GameType gameType, boolean enableMapFeatures, boolean hardcoreMode, WorldType worldTypeIn)
public WorldSettings(WorldInfo info)
public WorldSettings enableBonusChest()
public WorldSettings enableCommands()
public WorldSettings setWorldName(java.lang.String name)
public boolean isBonusChestEnabled()
public long getSeed()
public WorldSettings.GameType getGameType()
public boolean getHardcoreEnabled()
public boolean isMapFeaturesEnabled()
public WorldType getTerrainType()
public boolean areCommandsAllowed()
public static WorldSettings.GameType getGameTypeById(int id)
public java.lang.String getWorldName()