All Implemented Interfaces:
Finisher, GenerationPass, Populator
Direct Known Subclasses:
BushPopulator, HugeTreePopulator, TreePopulator

public abstract class AbstractTreePopulator extends ChancePopulator
Base class for all tree populators.
Author:
DaPorkchop_
  • Field Details

  • Constructor Details

    • AbstractTreePopulator

      public AbstractTreePopulator()
  • Method Details

    • init0

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

      public void populate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)
      Description copied from interface: Populator
      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
    • placeTree

      protected abstract void placeTree(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int x, int y, int z)