All Implemented Interfaces:
Finisher, GenerationPass, Populator

public class HugeTreePopulator extends AbstractTreePopulator
A populator that places simple trees, with a similar shape to vanilla oak/birch trees.
Author:
DaPorkchop_
  • Field Details

    • ID

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

      protected BlockSelector below
    • types

      protected WorldFeature[] types
    • grid

      protected boolean grid
  • Constructor Details

    • HugeTreePopulator

      public HugeTreePopulator()
  • Method Details

    • init0

      protected void init0(long levelSeed, long localSeed, StandardGenerator generator)
      Overrides:
      init0 in class AbstractTreePopulator
    • 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.
      Specified by:
      populate in interface Populator
      Overrides:
      populate in class AbstractTreePopulator
      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 void placeTree(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int x, int y, int z)
      Specified by:
      placeTree in class AbstractTreePopulator
    • getId

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