Class TrunkVineDecorator
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.tree.decorator.TreeDecorator
com.github.darksoulq.abyssallib.world.gen.feature.tree.decorator.TrunkVineDecorator
A specialized tree decorator responsible for seamlessly wrapping organic vine structures
directly onto the exposed horizontal faces of the generated trunk blocks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<TrunkVineDecorator> The designated codec instance responsible for serializing and deserializing the state variables of this decorator.static final TreeDecoratorType<TrunkVineDecorator> The globally registered type definition representing the trunk vine tree decorator. -
Constructor Summary
ConstructorsConstructorDescriptionTrunkVineDecorator(float probability) Constructs a new trunk vine placement decorator bound by a strict statistical probability parameter. -
Method Summary
Modifier and TypeMethodDescriptionvoiddecorate(WorldGenAccess level, Random random, Set<org.bukkit.Location> logs, Set<org.bukkit.Location> leaves) Iterates the complete tracked trunk structure attempting probability-bound lateral vine placements natively.getType()Retrieves the formalized registry definition cleanly categorizing this decorator structure.
-
Field Details
-
CODEC
The designated codec instance responsible for serializing and deserializing the state variables of this decorator. -
TYPE
The globally registered type definition representing the trunk vine tree decorator.
-
-
Constructor Details
-
TrunkVineDecorator
public TrunkVineDecorator(float probability) Constructs a new trunk 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 trunk structure attempting probability-bound lateral vine placements natively.- Specified by:
decoratein classTreeDecorator- 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
Retrieves the formalized registry definition cleanly categorizing this decorator structure.- Specified by:
getTypein classTreeDecorator- Returns:
- The specific decorator type enumeration mapping.
-