Class BendingTrunkPlacer

java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.tree.trunk.TrunkPlacer
com.github.darksoulq.abyssallib.world.gen.feature.tree.trunk.BendingTrunkPlacer

public class BendingTrunkPlacer extends TrunkPlacer
A sophisticated trunk placer that generates a straight vertical column before sharply bending diagonally towards a randomized horizontal direction.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The codec responsible for managing the serialization and deserialization of the bending trunk constraints.
    The formally registered type enumeration linking the placer exactly into the standard registry maps.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BendingTrunkPlacer(int bendLength)
    Constructs a bending trunk geometric constructor mapped natively to defined length algorithms.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the formalized registry definition natively establishing type identities.
    List<org.bukkit.util.Vector>
    placeTrunk(WorldGenAccess level, Random random, org.bukkit.Location origin, BlockStateProvider trunkProvider, int height)
    Executes the procedural logic mapping straight vertical limits sequentially transitioning into defined angled structural offsets.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final Codec<BendingTrunkPlacer> CODEC
      The codec responsible for managing the serialization and deserialization of the bending trunk constraints.
    • TYPE

      public static final TrunkPlacerType<BendingTrunkPlacer> TYPE
      The formally registered type enumeration linking the placer exactly into the standard registry maps.
  • Constructor Details

    • BendingTrunkPlacer

      public BendingTrunkPlacer(int bendLength)
      Constructs a bending trunk geometric constructor mapped natively to defined length algorithms.
      Parameters:
      bendLength - The integer count governing the absolute distance the trunk will actively bend.
  • Method Details

    • placeTrunk

      public List<org.bukkit.util.Vector> placeTrunk(WorldGenAccess level, Random random, org.bukkit.Location origin, BlockStateProvider trunkProvider, int height)
      Executes the procedural logic mapping straight vertical limits sequentially transitioning into defined angled structural offsets.
      Specified by:
      placeTrunk in class TrunkPlacer
      Parameters:
      level - The secure world generation interface context.
      random - The deterministic random source controlling probabilistic branches.
      origin - The central anchor coordinate structurally initializing the placement boundaries.
      trunkProvider - The block state provider feeding environmental materials natively.
      height - The completely calculated overall height integer dictating bounds.
      Returns:
      The explicit list encapsulating the finalized upper attachment coordinate targeting subsequent foliage integration.
    • getType

      public TrunkPlacerType<?> getType()
      Retrieves the formalized registry definition natively establishing type identities.
      Specified by:
      getType in class TrunkPlacer
      Returns:
      The specific registry type interface implementation.