Class LeaveVineDecorator

java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.tree.decorator.TreeDecorator
com.github.darksoulq.abyssallib.world.gen.feature.tree.decorator.LeaveVineDecorator

public class LeaveVineDecorator extends TreeDecorator
A specialized tree decorator responsible for seamlessly draping organic vine structures directly downwards from the generated leaf canopy blocks.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The designated codec instance responsible for serializing and deserializing the state variables of this decorator.
    The globally registered type definition representing the leaf vine tree decorator.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LeaveVineDecorator(float probability)
    Constructs a new leaf vine placement decorator bound by a strict statistical probability parameter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decorate(WorldGenAccess level, Random random, Set<org.bukkit.Location> logs, Set<org.bukkit.Location> leaves)
    Iterates the complete tracked foliage structure attempting probability-bound downward vine placements natively.
    Retrieves the formalized registry definition cleanly categorizing this decorator structure.

    Methods inherited from class Object

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

    • CODEC

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

      public static final TreeDecoratorType<LeaveVineDecorator> TYPE
      The globally registered type definition representing the leaf vine tree decorator.
  • Constructor Details

    • LeaveVineDecorator

      public LeaveVineDecorator(float probability)
      Constructs a new leaf vine placement decorator bound by a strict statistical probability parameter.
      Parameters:
      probability - The bounded float percentage denoting execution success chances.
  • Method Details

    • decorate

      public void decorate(WorldGenAccess level, Random random, Set<org.bukkit.Location> logs, Set<org.bukkit.Location> leaves)
      Iterates the complete tracked foliage structure attempting probability-bound downward vine placements natively.
      Specified by:
      decorate in class TreeDecorator
      Parameters:
      level - The secure world generation interface context.
      random - The deterministic random source controlling probabilistic branches.
      logs - The actively tracked structural anchor coordinates designating trunk placement.
      leaves - The actively tracked structural anchor coordinates designating foliage placement.
    • getType

      public TreeDecoratorType<?> getType()
      Retrieves the formalized registry definition cleanly categorizing this decorator structure.
      Specified by:
      getType in class TreeDecorator
      Returns:
      The specific decorator type enumeration mapping.