Class MangroveRootPlacer

java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.tree.root.RootPlacer
com.github.darksoulq.abyssallib.world.gen.feature.tree.root.MangroveRootPlacer

public class MangroveRootPlacer extends RootPlacer
A root placer that generates sprawling, arching structural roots.

Because roots lift the tree, this placer recalculates the trunk's starting origin and returns the new apex coordinate.

  • Field Details

  • Constructor Details

    • MangroveRootPlacer

      public MangroveRootPlacer()
      Constructs a new MangroveRootPlacer.
  • Method Details

    • placeRoots

      public org.bukkit.Location placeRoots(WorldGenAccess level, Random random, org.bukkit.Location origin, BlockStateProvider rootProvider, BlockStateProvider dirtProvider)
      Generates a sprawling root structure and elevates the central trunk origin.
      Specified by:
      placeRoots in class RootPlacer
      Parameters:
      level - The world generation accessor.
      random - The deterministic random source.
      origin - The requested base location of the tree.
      rootProvider - The provider defining the material of the roots.
      dirtProvider - The provider to optionally enforce the ground beneath the roots.
      Returns:
      The new, elevated origin location where the trunk should begin.
    • getType

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