Klasse BiomeCreator
java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.biome.BiomeCreator
- Alle implementierten Schnittstellen:
org.bukkit.Keyed
Represents a Creator for Biomes
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungclass
Represents the created Biome with the NMS-Data stored -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBiomeCreator
(String namespace, String biomename) Creates a BiomeCreator with a customable Namespace + BiomenameBiomeCreator
(org.bukkit.plugin.Plugin plugin, String biomename) Creates a BiomeCreator with the given Plugin as Namespace and Biomename as Key -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
addBiomeCarver
(BiomeCarvers biomeCarver) Adds a Cave/Canyon-Type to the CustomBiome that will generate with Air/Liquidboolean
addBiomeDecoration
(BiomeDecorationType decorationType, BiomeDecoration biomeFeature) Adds a Decoration (ore, trees...) to the CustomBiomeboolean
addBiomeFeature
(BiomeDecorationType decorationType, CustomBiomeFeature biomeFeature) Adds a Decoration (ore, trees...) to the CustomBiomevoid
addCustomDecorationPopulator
(BiomeDecorationType biomeDecorationType, BiomeDecorationPopulator populator) Add aBiomeDecorationPopulator
that will be placed in the specific Biomeboolean
addEntityConfiguration
(BiomeEntity biomeEntity) Allows the specific Entity to spawn in this Biome seeaddEntityConfiguration(EntityType, int, int, int)
boolean
addEntityConfiguration
(org.bukkit.entity.EntityType type, int weight, int mincount, int maxcount) Allows the specific Entity to spawn in this BiomeCreates the CustomBiome without replacing an existing one seecreateBiome(boolean)
createBiome
(boolean replace) Creates the CustomBiome and replaces the existing one if replace=trueGets all currently added Decorations with their DecorationTypeGets all currently added Decorations with their DecorationTypeGets all the current whitelistedBiomeStructure
for the CustomBiomeorg.bukkit.Sound
Gets the Sound that will randomly play in the CustomBiome or null if not setGets a List ofBiomeCarvers
Gets all the current allowed Entitys with their SpawnData compacted asBiomeEntity
getBiomeFeatures
(BiomeDecorationType decorationType) Gets a List of added Decorations of the CustomBiomeGets theBiomeGrassColorModifier
of the CustomBiomeGets the currentBiomeCaveSound
for the CustomBiome or null if not setGets theBiomeCaveSoundSettings
that will be used for the CustomBiome or null if not setGets the currentBiomeMusic
of the CustomBiome or null if not setfloat
Gets the current Downfall of the CustomBiome.Gets the current Fog-Color of the CustomBiome.Gets the current Foliage-Color of the CustomBiome.Gets the current Grass-Color of the CustomBiome.org.bukkit.NamespacedKey
getKey()
Gets the specified Key(Namespace+Biomename) of the BiomeCreatorfloat
Gets the current MobSpawnProbability of the CustomBiomeGets theBiomeParticle
of the CustomBiome if it was setboolean
Gets the if the Biome has PrecipitationGets the current Sky-Color of the CustomBiome.float
Gets the current Temperature of the CustomBiome.Gets the currentBiomeTemperatureModifier
that is used for the CustomBiomeGets the current Water-Color of the CustomBiome.Gets the current Water-Fog-Color of the CustomBiome.boolean
isBiomeStructureAllowed
(BiomeStructure biomeStructure) Checks if the givenBiomeStructure
is allowed to Generate in the Worldvoid
setAllowedBiomeStructure
(BiomeStructure biomeStructure, boolean allowed) Whitelist/Blacklist a specificBiomeStructure
If BiomeStructure.VILLAGE is allowed it means it *can* spawn, but it still depends on terrain and World-Configuration!void
setAmbientParticle
(BiomeParticle particle) Sets theBiomeParticle
that will randomly appear in the CustomBiomevoid
setAmbientSound
(org.bukkit.Sound sound) Sets the Sound that will randomly play in the CustomBiomevoid
Sets theBiomeGrassColorModifier
that will be used for the GrassColor as modifier.void
setCaveSound
(BiomeCaveSound caveSound) Sets theBiomeCaveSound
that will play randomly in the undergroundvoid
setCaveSoundSettings
(BiomeCaveSoundSettings caveSoundSettings) Sets theBiomeCaveSoundSettings
for the CustomBiome It will randomly play the Sound in a random distance of the Player *scary*void
setCustomMusic
(BiomeMusic biomeMusic) Sets theBiomeMusic
that will randomly starts playing in the CustomBiomevoid
setCustomMusic
(org.bukkit.Sound sound, int min_delay, int max_delay, boolean replace_current_music) Sets theBiomeMusic
that will randomly starts playing in the CustomBiomevoid
setDownfall
(float val) Sets the Downfall of the CustomBiome.void
setFogColor
(Color col) Sets the color of the fog that starts far away from the playervoid
setFoliageColor
(Color col) Sets the color of the foliage(leaves, vines)void
setGrassColor
(Color col) Sets the color of Grass-Blocksvoid
setMobSpawnProbability
(float val) Sets the MobSpawn-Probability of the CustomBiome Larger values result in more Spawn-Attemps for Entitysvoid
setPrecipitation
(boolean preci) Sets if the Biome has Precipitationvoid
setSkyColor
(Color col) Sets the color of the skyvoid
setTemperature
(float val) Sets the Temperature of the CustomBiome.void
Sets theBiomeTemperatureModifier
that should be used for the CustomBiomevoid
setWaterColor
(Color col) Sets the color of the watervoid
setWaterFogColor
(Color col) Sets the color of the water-fog that starts far away from the player under water
-
Konstruktordetails
-
BiomeCreator
Creates a BiomeCreator with the given Plugin as Namespace and Biomename as Key- Parameter:
plugin
- The Plugin to use (as namespace for the CustomBiome)biomename
- The Name of the Biome
-
BiomeCreator
Creates a BiomeCreator with a customable Namespace + Biomename- Parameter:
namespace
- A customable Namespace for the CustomBiome (like minecraft:)biomename
- The Name of the Biome
-
-
Methodendetails
-
getKey
public org.bukkit.NamespacedKey getKey()Gets the specified Key(Namespace+Biomename) of the BiomeCreator- Angegeben von:
getKey
in Schnittstelleorg.bukkit.Keyed
- Gibt zurück:
- NamespacedKey
-
getAllowedBiomeStructures
Gets all the current whitelistedBiomeStructure
for the CustomBiome- Gibt zurück:
- java.util.List A list with whitelisted Structures
-
setAllowedBiomeStructure
Whitelist/Blacklist a specificBiomeStructure
If BiomeStructure.VILLAGE is allowed it means it *can* spawn, but it still depends on terrain and World-Configuration!- Parameter:
biomeStructure
- The specificBiomeStructure
allowed
- Whether the Structure is now allowed or not
-
isBiomeStructureAllowed
Checks if the givenBiomeStructure
is allowed to Generate in the World- Parameter:
biomeStructure
- The specificBiomeStructure
to check- Gibt zurück:
- If the Structure is allowed
-
setTemperature
public void setTemperature(float val) Sets the Temperature of the CustomBiome. This controls some Gameplay-Features like Snow-Golems taking damage.- Parameter:
val
- Value between 0.0 and 1.0
-
getTemperature
public float getTemperature()Gets the current Temperature of the CustomBiome.- Gibt zurück:
- The Temperature
-
setDownfall
public void setDownfall(float val) Sets the Downfall of the CustomBiome. This controls some Gameplay-Features like how fast fire burn out- Parameter:
val
- Value between 0.0 and 1.0
-
getDownfall
public float getDownfall()Gets the current Downfall of the CustomBiome.- Gibt zurück:
- The Downfall
-
setFoliageColor
Sets the color of the foliage(leaves, vines)- Parameter:
col
- The Color to use for this or null
-
getFoliageColor
Gets the current Foliage-Color of the CustomBiome.- Gibt zurück:
- The Foligae-Color or null
-
setWaterColor
Sets the color of the water- Parameter:
col
- The Color to use for this
-
getWaterColor
Gets the current Water-Color of the CustomBiome.- Gibt zurück:
- The Water-Color
-
setFogColor
Sets the color of the fog that starts far away from the player- Parameter:
col
- The Color to use for this
-
getFogColor
Gets the current Fog-Color of the CustomBiome.- Gibt zurück:
- The Fog-Color
-
setWaterFogColor
Sets the color of the water-fog that starts far away from the player under water- Parameter:
col
- The Color to use for this
-
getWaterFogColor
Gets the current Water-Fog-Color of the CustomBiome.- Gibt zurück:
- The Water-Fog-Color
-
setSkyColor
Sets the color of the sky- Parameter:
col
- The Color to use for this
-
getSkyColor
Gets the current Sky-Color of the CustomBiome.- Gibt zurück:
- The Sky-Color
-
setGrassColor
Sets the color of Grass-Blocks- Parameter:
col
- The Color to use for this
-
getGrassColor
Gets the current Grass-Color of the CustomBiome.- Gibt zurück:
- The Grass-Color
-
addEntityConfiguration
public boolean addEntityConfiguration(org.bukkit.entity.EntityType type, int weight, int mincount, int maxcount) Allows the specific Entity to spawn in this Biome- Parameter:
type
-EntityType
(EntityType that will be allowed)weight
- A value that is shared between all Entitys in the Biome (high value means more spawnchances)mincount
- Value that defines the minimum of trys to spawn a Entitymaxcount
- Value that defines the maximum of trys to spawn a Entity- Gibt zurück:
- Whether it was successful to add the Entity or not
-
addEntityConfiguration
Allows the specific Entity to spawn in this Biome seeaddEntityConfiguration(EntityType, int, int, int)
- Parameter:
biomeEntity
- The finalBiomeEntity
-Object- Gibt zurück:
- If the
BiomeEntity
was added or not
-
getBiomeEntities
Gets all the current allowed Entitys with their SpawnData compacted asBiomeEntity
- Gibt zurück:
- List with all
BiomeEntity
-
getPrecipitation
public boolean getPrecipitation()Gets the if the Biome has Precipitation- Gibt zurück:
- true if the Biome has Precipitation
-
setPrecipitation
public void setPrecipitation(boolean preci) Sets if the Biome has Precipitation- Parameter:
preci
- true if the Biome has Precipitation
-
getTemperatureModifier
Gets the currentBiomeTemperatureModifier
that is used for the CustomBiome- Gibt zurück:
- The
BiomeTemperatureModifier
to use
-
setTemperatureModifier
Sets theBiomeTemperatureModifier
that should be used for the CustomBiome- Parameter:
temp
- TheBiomeTemperatureModifier
to use
-
setBiomeGrassColorModifier
Sets theBiomeGrassColorModifier
that will be used for the GrassColor as modifier.- Parameter:
modifier
- TheBiomeGrassColorModifier
to use
-
getBiomeGrassColorModifier
Gets theBiomeGrassColorModifier
of the CustomBiome- Gibt zurück:
- The current BiomeGrassColorModifier
-
setMobSpawnProbability
public void setMobSpawnProbability(float val) Sets the MobSpawn-Probability of the CustomBiome Larger values result in more Spawn-Attemps for Entitys- Parameter:
val
- Value between 0.0 and 1.0
-
getMobSpawnProbability
public float getMobSpawnProbability()Gets the current MobSpawnProbability of the CustomBiome- Gibt zurück:
- Current MobSpawnProbability
-
addBiomeFeature
Adds a Decoration (ore, trees...) to the CustomBiome- Parameter:
decorationType
- Specifies the Type and how to generate the DecorationbiomeFeature
- Defines the Decoration to generate in the CustomBiome- Gibt zurück:
- If the BiomeDecoration was added or not.
-
addBiomeDecoration
Adds a Decoration (ore, trees...) to the CustomBiome- Parameter:
decorationType
- Specifies the Type and how to generate the DecorationbiomeFeature
- Defines the Decoration to generate in the CustomBiome- Gibt zurück:
- If the BiomeDecoration was added or not.
-
getBiomeFeatures
Gets a List of added Decorations of the CustomBiome- Parameter:
decorationType
- The DecorationType to search for- Gibt zurück:
- A List of
BiomeDecoration
for the given DecorationType or null
-
getAllCustomBiomeFeatures
Gets all currently added Decorations with their DecorationType- Gibt zurück:
- A Map of DecorationTypes with a List of added Decorations
-
getAllBiomeFeatures
Gets all currently added Decorations with their DecorationType- Gibt zurück:
- A Map of DecorationTypes with a List of added Decorations
-
addBiomeCarver
Adds a Cave/Canyon-Type to the CustomBiome that will generate with Air/Liquid- Parameter:
biomeCarver
- The Carver-Generation-Type- Gibt zurück:
- If the Carver was added or not
-
getBiomeCarvers
Gets a List ofBiomeCarvers
- Gibt zurück:
- A List of Carvers for the given FeatureType
-
setCustomMusic
public void setCustomMusic(org.bukkit.Sound sound, int min_delay, int max_delay, boolean replace_current_music) Sets theBiomeMusic
that will randomly starts playing in the CustomBiome- Parameter:
sound
- The Sound/Music to playmin_delay
- Minimum ticks before Music will startmax_delay
- Maximum ticks before Music will startreplace_current_music
- Whether it will replace active Music or not
-
setCustomMusic
Sets theBiomeMusic
that will randomly starts playing in the CustomBiome- Parameter:
biomeMusic
- seesetCustomMusic(Sound, int, int, boolean)
-
getCustomMusic
Gets the currentBiomeMusic
of the CustomBiome or null if not set- Gibt zurück:
- The BiomeMusic or null
-
setAmbientParticle
Sets theBiomeParticle
that will randomly appear in the CustomBiome- Parameter:
particle
- TheBiomeParticle
that will be used in the Biome
-
getParticle
Gets theBiomeParticle
of the CustomBiome if it was set- Gibt zurück:
- The BiomeParticle or null
-
setAmbientSound
public void setAmbientSound(org.bukkit.Sound sound) Sets the Sound that will randomly play in the CustomBiome- Parameter:
sound
- The Ambient-Sound
-
getAmbientSound
public org.bukkit.Sound getAmbientSound()Gets the Sound that will randomly play in the CustomBiome or null if not set- Gibt zurück:
- The Ambient-Sound or null
-
setCaveSound
Sets theBiomeCaveSound
that will play randomly in the underground- Parameter:
caveSound
- TheBiomeCaveSound
that will play randomly in the underground
-
getCaveSound
Gets the currentBiomeCaveSound
for the CustomBiome or null if not set- Gibt zurück:
- The
BiomeCaveSound
or null
-
setCaveSoundSettings
Sets theBiomeCaveSoundSettings
for the CustomBiome It will randomly play the Sound in a random distance of the Player *scary*- Parameter:
caveSoundSettings
- TheBiomeCaveSoundSettings
to use
-
getCaveSoundSettings
Gets theBiomeCaveSoundSettings
that will be used for the CustomBiome or null if not set- Gibt zurück:
- The
BiomeCaveSoundSettings
or null
-
addCustomDecorationPopulator
public void addCustomDecorationPopulator(BiomeDecorationType biomeDecorationType, BiomeDecorationPopulator populator) Add aBiomeDecorationPopulator
that will be placed in the specific Biome- Parameter:
biomeDecorationType
- TheBiomeDecorationType
to add the Populator topopulator
- TheBiomeDecorationPopulator
to add
-
createBiome
Creates the CustomBiome without replacing an existing one seecreateBiome(boolean)
- Gibt zurück:
- The CustomBiome that was created - or the existing one
-
createBiome
Creates the CustomBiome and replaces the existing one if replace=true- Parameter:
replace
- Whether to replace the existing CustomBiome with the new Settings or not- Gibt zurück:
- The CustomBiome that was created or replaced
-