public final class WorldSettings
extends java.lang.Object
コンストラクタと説明 |
---|
WorldSettings(long seedIn,
GameType gameType,
boolean enableMapFeatures,
boolean hardcoreMode,
WorldType worldTypeIn) |
WorldSettings(WorldInfo info) |
修飾子とタイプ | メソッドと説明 |
---|---|
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.
|
com.google.gson.JsonElement |
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. strongholds) generation is enabled or disabled.
|
WorldSettings |
setGeneratorOptions(com.google.gson.JsonElement p_205390_1_) |
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()