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

public interface Finisher extends GenerationPass
Exactly identical to a Populator, but only runs after the chunk and its neighbors have been populated.
Author:
DaPorkchop_
  • Field Summary

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

    Modifier and Type
    Method
    Description
    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
     

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

    init
  • Field Details

    • EMPTY_ARRAY

      static final Finisher[] EMPTY_ARRAY
  • Method Details

    • finish

      void finish(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)
      Finishes 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 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
    • getId

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