public final class WorldSettings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
bonusChestEnabled |
private boolean |
commandsAllowed |
private GameType |
gameType |
private com.google.gson.JsonElement |
generatorOptions |
private boolean |
hardcoreEnabled |
private boolean |
mapFeaturesEnabled |
private long |
seed |
private WorldType |
terrainType |
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() |
WorldSettings |
enableBonusChest() |
WorldSettings |
enableCommands() |
GameType |
getGameType() |
com.google.gson.JsonElement |
getGeneratorOptions() |
boolean |
getHardcoreEnabled() |
long |
getSeed() |
WorldType |
getTerrainType() |
boolean |
isBonusChestEnabled() |
boolean |
isMapFeaturesEnabled() |
WorldSettings |
setGeneratorOptions(com.google.gson.JsonElement p_205390_1_) |
private final long seed
private final GameType gameType
private final boolean mapFeaturesEnabled
private final boolean hardcoreEnabled
private final WorldType terrainType
private boolean commandsAllowed
private boolean bonusChestEnabled
private com.google.gson.JsonElement generatorOptions
public WorldSettings(long seedIn, GameType gameType, boolean enableMapFeatures, boolean hardcoreMode, WorldType worldTypeIn)
public WorldSettings(WorldInfo info)
public WorldSettings enableBonusChest()
public WorldSettings enableCommands()
public WorldSettings setGeneratorOptions(com.google.gson.JsonElement p_205390_1_)
public boolean isBonusChestEnabled()
public long getSeed()
public GameType getGameType()
public boolean getHardcoreEnabled()
public boolean isMapFeaturesEnabled()
public WorldType getTerrainType()
public boolean areCommandsAllowed()
public com.google.gson.JsonElement getGeneratorOptions()