Class UpwardBranchingTrunkPlacer
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.tree.trunk.TrunkPlacer
com.github.darksoulq.abyssallib.world.gen.feature.tree.trunk.UpwardBranchingTrunkPlacer
A highly dynamic trunk placer algorithm charting a primary vertical stem that generates numerous distinct upwards-reaching structural branches.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<UpwardBranchingTrunkPlacer> The codec mapping runtime instantiation states perfectly into native generic serialized memory footprints.static final TrunkPlacerType<UpwardBranchingTrunkPlacer> The formally registered type enumeration linking the placer exactly into the standard registry maps. -
Constructor Summary
ConstructorsConstructorDescriptionUpwardBranchingTrunkPlacer(int branchCount, int branchLength) Constructs a dynamic vertical branching geometric constructor mapped natively to specific dimensional configurations natively securely. -
Method Summary
Modifier and TypeMethodDescriptiongetType()Retrieves the formalized registry definition natively establishing type identities seamlessly securely.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 upward branching structural offsets securely natively.
-
Field Details
-
CODEC
The codec mapping runtime instantiation states perfectly into native generic serialized memory footprints. -
TYPE
The formally registered type enumeration linking the placer exactly into the standard registry maps.
-
-
Constructor Details
-
UpwardBranchingTrunkPlacer
public UpwardBranchingTrunkPlacer(int branchCount, int branchLength) Constructs a dynamic vertical branching geometric constructor mapped natively to specific dimensional configurations natively securely.- Parameters:
branchCount- The integer count specifying branching aggregation volumes natively.branchLength- The integer count governing the absolute distance individual branches will continually grow.
-
-
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 upward branching structural offsets securely natively.- Specified by:
placeTrunkin classTrunkPlacer- Parameters:
level- The secure world generation interface context.random- The deterministic random source controlling probabilistic bounds.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 targets for subsequent foliage integration securely.
-
getType
Retrieves the formalized registry definition natively establishing type identities seamlessly securely.- Specified by:
getTypein classTrunkPlacer- Returns:
- The specific registry type interface implementation.
-