Class WorldSettings


  • public final class WorldSettings
    extends java.lang.Object
    • Constructor Detail

      • WorldSettings

        public WorldSettings​(long seedIn,
                             WorldSettings.GameType gameType,
                             boolean enableMapFeatures,
                             boolean hardcoreMode,
                             WorldType worldTypeIn)
      • WorldSettings

        public WorldSettings​(WorldInfo info)
    • Method Detail

      • enableBonusChest

        public WorldSettings enableBonusChest()
        + Enables the bonus chest.
      • enableCommands

        public WorldSettings enableCommands()
        + Enables Commands (cheats).
      • setWorldName

        public WorldSettings setWorldName​(java.lang.String name)
      • isBonusChestEnabled

        public boolean isBonusChestEnabled()
        + Returns true if the Bonus Chest is enabled.
      • getSeed

        public long getSeed()
        + Returns the seed for the world.
      • 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

        public WorldType getTerrainType()
      • areCommandsAllowed

        public boolean areCommandsAllowed()
        + Returns true if Commands (cheats) are allowed.
      • getGameTypeById

        public static WorldSettings.GameType getGameTypeById​(int id)
        + Gets the GameType by ID
      • getWorldName

        public java.lang.String getWorldName()