Class GeneratorConfiguration
java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.GeneratorConfiguration
- All Implemented Interfaces:
org.bukkit.Keyed
Represents the Configuration of the WorldGenerator
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents Methods to use for Configure the Generation of the World.static enum
Small Enum to identify which Random Source will be used for the Generation-Process LEGACY is equal to earlier Generation while XOROSHIRO is the new Source for Randomnessstatic class
Represents the Configuration of the Structureplacement e.g.static class
Represents the Information for the Structures that can spawn in the World Holds Information about how often the Structures can spawn -
Field Summary
Modifier and TypeFieldDescriptionstatic final GeneratorConfiguration
static final GeneratorConfiguration
static final GeneratorConfiguration
static final GeneratorConfiguration
static final GeneratorConfiguration
static final GeneratorConfiguration
static final GeneratorConfiguration
-
Constructor Summary
ConstructorDescriptionGeneratorConfiguration
(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 -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Material
Gets the settings about the Material for the default Blockorg.bukkit.Material
Gets the settings about the Material for the default Fluidorg.bukkit.NamespacedKey
getKey()
Gets the settings about the settings for the Generation of the WorldGets the settings about the source for the Randomnessint
Gets the settings about the Sealevel in the WorldGets the current set SurfaceRuleboolean
Gets the settings whether Aquifers can generateboolean
Gets the settings whether Mobs can not spawnboolean
Gets the settings whether OreVeins can generateboolean
Gets whether settings can be replaced with new one(true) or not(false)void
setAquifersEnabled
(boolean aquifersEnabled) Sets if the World should generate Aquifersvoid
setDefaultBlock
(org.bukkit.Material defaultBlock) Sets the defaultMaterial
for Blocks in the Worldvoid
setDefaultFluid
(org.bukkit.Material defaultFluid) Sets the defaultMaterial
for Fluids in the Worldvoid
setDisableMobGeneration
(boolean disableMobGeneration) Sets if Mobs can spawn in the World or notvoid
setNoiseGeneration
(GeneratorConfiguration.NoiseGeneration noiseGeneration) Sets the Noise-Generation of the Worldvoid
setNoiseRouterData
(NoiseRouterData noiseRouterData) void
setOreVeinsEnabled
(boolean oreVeinsEnabled) Sets if the World can generate OreVeinsvoid
setOverwriteSettingsIfExist
(boolean overwriteSettingsIfExist) Sets if those settings will overwrite existing settings with the same keyvoid
setRandomGenerationType
(GeneratorConfiguration.RandomGenerationType randomGenerationType) Sets if the source for Randomness in the Generationvoid
setSeaLevel
(int seaLevel) Sets the Y-Level of the normal Fluid-Blocks like in Oceansvoid
setSpawnTarget
(SpawnTarget spawnTarget) void
setSurfaceRule
(SurfaceRule surfaceRule) Sets the Surface-Generation to Overworld, Nether or EndtoString()
-
Field Details
-
OVERWORLD
-
LARGE_BIOMES
-
AMPLIFIED
-
NETHER
-
END
-
CAVES
-
FLOATING_ISLANDS
-
-
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
-
setSpawnTarget
-
getSpawnTarget
-
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
Gets the settings about the settings for the Generation of the World- Returns:
- The NoiseGeneration of the World
-
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 defaultMaterial
for Blocks in the World- Parameters:
defaultBlock
- TheMaterial
of Blocks
-
setDefaultFluid
public void setDefaultFluid(org.bukkit.Material defaultFluid) Sets the defaultMaterial
for Fluids in the World- Parameters:
defaultFluid
- TheMaterial
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
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
Sets the Surface-Generation to Overworld, Nether or End- Parameters:
surfaceRule
- The SurfaceRule to use
-
getSurfaceRule
Gets the current set SurfaceRule- Returns:
- SurfaceRule which will be used
-
getKey
public org.bukkit.NamespacedKey getKey()- Specified by:
getKey
in interfaceorg.bukkit.Keyed
-
toString
-