Class BlobFoliagePlacer

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

public class BlobFoliagePlacer extends FoliagePlacer
A standard foliage placer that generates a layered spherical blob of leaves.

This replicates the iconic leaf shape of standard Minecraft Oak and Birch trees.

  • Field Details

  • Constructor Details

    • BlobFoliagePlacer

      public BlobFoliagePlacer(int height)
      Constructs a new BlobFoliagePlacer.
      Parameters:
      height - The number of vertical layers the blob spans downwards from the attachment point.
  • Method Details

    • placeFoliage

      public void placeFoliage(WorldGenAccess level, Random random, org.bukkit.Location attachmentPoint, BlockStateProvider foliageProvider, int radius)
      Generates a cascading blob of leaves downwards from the attachment point.
      Specified by:
      placeFoliage in class FoliagePlacer
      Parameters:
      level - The world generation accessor.
      random - The deterministic random source.
      attachmentPoint - The top-center location of the foliage blob.
      foliageProvider - The block state provider for the leaf material.
      radius - The maximum horizontal radius of the blob.
    • getType

      public FoliagePlacerType<?> getType()
      Retrieves the specific type definition for this foliage placer.
      Specified by:
      getType in class FoliagePlacer
      Returns:
      The foliage placer type associated with this instance.