All Superinterfaces:
Finisher, GenerationPass
All Known Subinterfaces:
Decorator
All Known Implementing Classes:
AbstractPlantPopulator, AbstractReplacingPopulator, AbstractTreePopulator, BedrockDecorator, BlobPopulator, BushPopulator, ChancePopulator, ChancePopulator.Column, CocoaPopulator, DeepSurfaceDecorator, DepthNoiseDecorator, DistanceSelectionDecorator, DistanceSelectionPopulator, DoublePlantPopulator, EndIslandPopulator, GlowstonePopulator, GroundCoverDecorator, HeightSelectionDecorator, HugeTreePopulator, LakePopulator, MesaSurfaceDecorator, NextGenerationPass, NoiseSelectionDecorator, NoiseSelectionPopulator, OrePopulator, PlantPopulator, ReplaceTopDecorator, ScatteredCoverDecorator, ShrubPopulator, SpikesPopulator, SpringPopulator, SubmergedOrePopulator, SurfaceDecorator, TreePopulator

public interface Populator extends Finisher
Sets individual blocks of a chunk and its neighbors, allowing to generate larger structures and features.
Author:
DaPorkchop_
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Indicates that a specific Populator class should not be automatically registered to the Finisher registry as well.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static Populator[]
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    finish​(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)
    Finishes a given chunk.
    org.cloudburstmc.api.util.Identifier
     
    void
    populate​(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)
    Populates a given chunk.

    Methods inherited from interface org.cloudburstmc.server.level.generator.standard.misc.GenerationPass

    init
  • Field Details

    • EMPTY_ARRAY

      static final Populator[] EMPTY_ARRAY
  • Method Details

    • finish

      default void finish(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)
      Description copied from interface: Finisher
      Finishes a given chunk.
      Specified by:
      finish in interface Finisher
      Parameters:
      random - an instance of PRandom for generating random numbers, initialized with a seed based on chunk's position
      level - a ChunkManager containing only a 3x3 square of populated chunks, centered around the chunk being finishes
      blockX - the X coordinate of the block column to finish
      blockZ - the Z coordinate of the block column to finish
    • populate

      void populate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)
      Populates a given chunk.
      Parameters:
      random - an instance of PRandom for generating random numbers, initialized with a seed based on chunk's position
      level - a ChunkManager containing only a 3x3 square of generated chunks, centered around the chunk being populated
      blockX - the X coordinate of the block column to populate
      blockZ - the Z coordinate of the block column to populate
    • getId

      org.cloudburstmc.api.util.Identifier getId()
      Specified by:
      getId in interface Finisher
      Specified by:
      getId in interface GenerationPass
      Returns:
      the identifier of this generation pass