Klasse GeneratorConfiguration

java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.GeneratorConfiguration
Alle implementierten Schnittstellen:
org.bukkit.Keyed

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

  • Konstruktordetails

    • 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
      Parameter:
      namespacedKey - A Key that can be used to load predefined settings (e.g. Datapacks or Mojang)
  • Methodendetails

    • 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
      Parameter:
      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)
      Gibt zurück:
      If replacing is allowed or not
    • getSeaLevel

      public int getSeaLevel()
      Gets the settings about the Sealevel in the World
      Gibt zurück:
      The hight of the SeaLevel
    • getDefaultBlock

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

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

      public GeneratorConfiguration.NoiseGeneration getNoiseGeneration()
      Gets the settings about the settings for the Generation of the World
      Gibt zurück:
      The NoiseGeneration of the World
    • getRandomGenerationType

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

      public boolean isAquifersEnabled()
      Gets the settings whether Aquifers can generate
      Gibt zurück:
      If Aquifers will generate
    • isDisableMobGeneration

      public boolean isDisableMobGeneration()
      Gets the settings whether Mobs can not spawn
      Gibt zurück:
      If Mobs are disabled
    • isOreVeinsEnabled

      public boolean isOreVeinsEnabled()
      Gets the settings whether OreVeins can generate
      Gibt zurück:
      If OreVeins will generate
    • setAquifersEnabled

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

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

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

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

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

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

      public void setRandomGenerationType(GeneratorConfiguration.RandomGenerationType randomGenerationType)
      Sets if the source for Randomness in the Generation
      Parameter:
      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
      Parameter:
      seaLevel - The Height of the Water-Level
    • setSurfaceRule

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

      public SurfaceRule getSurfaceRule()
      Gets the current set SurfaceRule
      Gibt zurück:
      SurfaceRule which will be used
    • getKey

      public org.bukkit.NamespacedKey getKey()
      Angegeben von:
      getKey in Schnittstelle org.bukkit.Keyed
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object