Class CustomFlatGenerator
java.lang.Object
org.bukkit.generator.ChunkGenerator
ua.mcchickenstudio.opencreative.utils.world.generators.WorldGenerator
ua.mcchickenstudio.opencreative.utils.world.generators.AbstractFlatGenerator
ua.mcchickenstudio.opencreative.utils.world.generators.CustomFlatGenerator
- All Implemented Interfaces:
ExtensionContent
CustomFlatGenerator
This class represents a custom flat world generator, that has generation pattern to set blocks.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.generator.ChunkGenerator
org.bukkit.generator.ChunkGenerator.BiomeGrid, org.bukkit.generator.ChunkGenerator.ChunkData -
Field Summary
Fields inherited from class ua.mcchickenstudio.opencreative.utils.world.generators.AbstractFlatGenerator
biome, blocks, generateTrees -
Constructor Summary
ConstructorsConstructorDescriptionCustomFlatGenerator(@NotNull String id, @NotNull org.bukkit.inventory.ItemStack displayIcon, @NotNull String generation, boolean generateTrees) -
Method Summary
Methods inherited from class ua.mcchickenstudio.opencreative.utils.world.generators.AbstractFlatGenerator
afterCreation, canSpawn, generateSurface, getDefaultBiomeProvider, getDefaultPopulators, getFixedSpawnLocation, modifyWorldCreatorMethods inherited from class ua.mcchickenstudio.opencreative.utils.world.generators.WorldGenerator
getDisplayIcon, getID, getLocaleName, getNameMethods inherited from class org.bukkit.generator.ChunkGenerator
createChunkData, generateBedrock, generateCaves, generateChunkData, generateNoise, getBaseHeight, isParallelCapable, shouldGenerateBedrock, shouldGenerateCaves, shouldGenerateCaves, shouldGenerateDecorations, shouldGenerateDecorations, shouldGenerateMobs, shouldGenerateMobs, shouldGenerateNoise, shouldGenerateNoise, shouldGenerateStructures, shouldGenerateStructures, shouldGenerateSurface, shouldGenerateSurface
-
Constructor Details
-
CustomFlatGenerator
public CustomFlatGenerator(@NotNull @NotNull String id, @NotNull @NotNull org.bukkit.inventory.ItemStack displayIcon, @NotNull @NotNull String generation, boolean generateTrees) - Parameters:
id- id of generator.displayIcon- icon to display.generation- generation pattern, that consists of amounts and material layers."bedrock" // Generates only 1 layer with bedrock "bedrock,2*sand" // Generates bedrock on Y = 0, and sand on Y = 1, 2. "bedrock,2*air,stone" // Generates bedrock on Y = 0, and stone on Y = 3. "bedrock,grass_block;ice_spikes" // Generates bedrock, grass_block with ice_spikes biome.generateTrees- generate trees or not.
-
-
Method Details
-
getExtensionId
Description copied from interface:ExtensionContentReturns lower-cased simple id of extension. Will be used to identify author of content.ID "default" is reserved for OpenCreative+ developers.
- Returns:
- id of extension.
-
getDescription
Description copied from interface:ExtensionContentReturns description of extension content. Describes purpose of new additional content.- Returns:
- description of content.
-