Class CustomFlatGenerator

java.lang.Object
org.bukkit.generator.ChunkGenerator
All Implemented Interfaces:
ExtensionContent

public final class CustomFlatGenerator extends AbstractFlatGenerator

CustomFlatGenerator

This class represents a custom flat world generator, that has generation pattern to set blocks.
  • 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

      @NotNull public @NotNull String getExtensionId()
      Description copied from interface: ExtensionContent
      Returns 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

      @NotNull public @NotNull String getDescription()
      Description copied from interface: ExtensionContent
      Returns description of extension content. Describes purpose of new additional content.
      Returns:
      description of content.