Class AcaciaFoliagePlacer

java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.tree.foliage.FoliagePlacer
com.github.darksoulq.abyssallib.world.gen.feature.tree.foliage.AcaciaFoliagePlacer

public class AcaciaFoliagePlacer extends FoliagePlacer
A standard foliage placer explicitly designed to generate the iconic horizontal, layered canopy footprint associated strictly with Acacia tree typologies.
  • Field Details

    • CODEC

      public static final Codec<AcaciaFoliagePlacer> CODEC
      The designated codec instance responsible for serializing and deserializing the state variables of this placer.
    • TYPE

      public static final FoliagePlacerType<AcaciaFoliagePlacer> TYPE
      The globally registered type definition representing the acacia foliage placer.
  • Constructor Details

    • AcaciaFoliagePlacer

      public AcaciaFoliagePlacer(int radius)
      Constructs a new acacia foliage placement generator bound by a structural radius parameter.
      Parameters:
      radius - The fundamental mathematical limit bounding lateral canopy growth computations.
  • Method Details

    • placeFoliage

      public void placeFoliage(WorldGenAccess level, Random random, org.bukkit.Location attachmentPoint, BlockStateProvider foliageProvider, int radiusOffset)
      Executes the procedural logic shaping horizontal foliage discs radiating precisely from the attachment core.
      Specified by:
      placeFoliage in class FoliagePlacer
      Parameters:
      level - The secure world generation interface context.
      random - The deterministic random source controlling probabilistic bounds.
      attachmentPoint - The central trunk coordinate structurally anchoring the canopy iteration limits.
      foliageProvider - The block state provider feeding environmental configurations structurally.
      radiusOffset - The dynamic additive modifier actively extending or retracting the baseline calculation.
    • getType

      public FoliagePlacerType<?> getType()
      Retrieves the formalized registry definition cleanly categorizing this placer structure.
      Specified by:
      getType in class FoliagePlacer
      Returns:
      The specific placer type enumeration mapping natively evaluated mechanically.