All Implemented Interfaces:
Finisher, GenerationPass, Populator

public class ShrubPopulator extends AbstractPlantPopulator
Places patches of 1-block-tall plants in the world.

https://i.imgur.com/BUocESm.gif

Author:
DaPorkchop_
  • Field Details

    • ID

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

      protected BlockSelector block
    • roundDown

      protected boolean roundDown
  • Constructor Details

    • ShrubPopulator

      public ShrubPopulator()
  • Method Details

    • init0

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

      protected void populate0(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)
      Overrides:
      populate0 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