Class GeneratorConfiguration

java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.GeneratorConfiguration
All Implemented Interfaces:
org.bukkit.Keyed

public class GeneratorConfiguration extends Object implements org.bukkit.Keyed
Represents the Configuration of the WorldGenerator
  • Field Details

  • Constructor Details

    • GeneratorConfiguration

      public GeneratorConfiguration(org.bukkit.NamespacedKey namespacedKey)
      Creates a Generator-Config with Overworld-Settings as default Setting an already existing NamespacedKey will load stored settings, but not 100% of them or correct
      Parameters:
      namespacedKey - A Key that can be used to load predefined settings (e.g. Datapacks or Mojang)
  • Method Details

    • setNoiseRouterData

      public void setNoiseRouterData(NoiseRouterData noiseRouterData)
    • setSpawnTarget

      public void setSpawnTarget(SpawnTarget spawnTarget)
    • getSpawnTarget

      public SpawnTarget getSpawnTarget()
    • getNoiseRouterData

      public NoiseRouterData getNoiseRouterData()
    • setOverwriteSettingsIfExist

      public void setOverwriteSettingsIfExist(boolean overwriteSettingsIfExist)
      Sets if those settings will overwrite existing settings with the same key
      Parameters:
      overwriteSettingsIfExist - If true allows to replace registered settings
    • isOverwriteSettingsIfExist

      public boolean isOverwriteSettingsIfExist()
      Gets whether settings can be replaced with new one(true) or not(false)
      Returns:
      If replacing is allowed or not
    • getSeaLevel

      public int getSeaLevel()
      Gets the settings about the Sealevel in the World
      Returns:
      The hight of the SeaLevel
    • getDefaultBlock

      public org.bukkit.Material getDefaultBlock()
      Gets the settings about the Material for the default Block
      Returns:
      The Material for default Blocks
    • getDefaultFluid

      public org.bukkit.Material getDefaultFluid()
      Gets the settings about the Material for the default Fluid
      Returns:
      The Material for default Fluids
    • getNoiseGeneration

      public GeneratorConfiguration.NoiseGeneration getNoiseGeneration()
      Gets the settings about the settings for the Generation of the World
      Returns:
      The NoiseGeneration of the World
    • getRandomGenerationType

      public GeneratorConfiguration.RandomGenerationType getRandomGenerationType()
      Gets the settings about the source for the Randomness
      Returns:
      The Type of the Random-Source
    • isAquifersEnabled

      public boolean isAquifersEnabled()
      Gets the settings whether Aquifers can generate
      Returns:
      If Aquifers will generate
    • isDisableMobGeneration

      public boolean isDisableMobGeneration()
      Gets the settings whether Mobs can not spawn
      Returns:
      If Mobs are disabled
    • isOreVeinsEnabled

      public boolean isOreVeinsEnabled()
      Gets the settings whether OreVeins can generate
      Returns:
      If OreVeins will generate
    • setAquifersEnabled

      public void setAquifersEnabled(boolean aquifersEnabled)
      Sets if the World should generate Aquifers
      Parameters:
      aquifersEnabled - If Aquifers are enabled
    • setDefaultBlock

      public void setDefaultBlock(org.bukkit.Material defaultBlock)
      Sets the default Material for Blocks in the World
      Parameters:
      defaultBlock - The Material of Blocks
    • setDefaultFluid

      public void setDefaultFluid(org.bukkit.Material defaultFluid)
      Sets the default Material for Fluids in the World
      Parameters:
      defaultFluid - The Material of Fluids
    • setDisableMobGeneration

      public void setDisableMobGeneration(boolean disableMobGeneration)
      Sets if Mobs can spawn in the World or not
      Parameters:
      disableMobGeneration - If Mobs are disabled
    • setNoiseGeneration

      public void setNoiseGeneration(GeneratorConfiguration.NoiseGeneration noiseGeneration)
      Sets the Noise-Generation of the World
      Parameters:
      noiseGeneration - The NoiseGeneration of the World
    • setOreVeinsEnabled

      public void setOreVeinsEnabled(boolean oreVeinsEnabled)
      Sets if the World can generate OreVeins
      Parameters:
      oreVeinsEnabled - If OreVeins will generate
    • setRandomGenerationType

      public void setRandomGenerationType(GeneratorConfiguration.RandomGenerationType randomGenerationType)
      Sets if the source for Randomness in the Generation
      Parameters:
      randomGenerationType - The Type of the Random-Source
    • setSeaLevel

      public void setSeaLevel(int seaLevel)
      Sets the Y-Level of the normal Fluid-Blocks like in Oceans
      Parameters:
      seaLevel - The Height of the Water-Level
    • setSurfaceRule

      public void setSurfaceRule(SurfaceRule surfaceRule)
      Sets the Surface-Generation to Overworld, Nether or End
      Parameters:
      surfaceRule - The SurfaceRule to use
    • getSurfaceRule

      public SurfaceRule getSurfaceRule()
      Gets the current set SurfaceRule
      Returns:
      SurfaceRule which will be used
    • getKey

      public org.bukkit.NamespacedKey getKey()
      Specified by:
      getKey in interface org.bukkit.Keyed
    • toString

      public String toString()
      Overrides:
      toString in class Object