All Implemented Interfaces:
Finisher, GenerationPass, Populator

public class PlantPopulator extends AbstractPlantPopulator
Places patches of plants of varying heights in the world.
Author:
DaPorkchop_
  • Field Details

    • ID

      public static final org.cloudburstmc.api.util.Identifier ID
    • block

      protected BlockSelector block
    • water

      protected BlockFilter water
    • height

      protected IntRange height
  • Constructor Details

    • PlantPopulator

      public PlantPopulator()
  • Method Details

    • init0

      protected void init0(long levelSeed, long localSeed, StandardGenerator generator)
      Overrides:
      init0 in class AbstractPlantPopulator
    • placeCluster

      protected void placeCluster(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int x, int y, int z)
      Specified by:
      placeCluster in class AbstractPlantPopulator
    • getId

      public org.cloudburstmc.api.util.Identifier getId()
      Returns:
      the identifier of this generation pass