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
A sophisticated trunk placer that generates a straight vertical column before sharply
bending diagonally towards a randomized horizontal direction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<BendingTrunkPlacer> The codec responsible for managing the serialization and deserialization of the bending trunk constraints.static final TrunkPlacerType<BendingTrunkPlacer> The formally registered type enumeration linking the placer exactly into the standard registry maps. -
Constructor Summary
ConstructorsConstructorDescriptionBendingTrunkPlacer(int bendLength) Constructs a bending trunk geometric constructor mapped natively to defined length algorithms. -
Method Summary
Modifier and TypeMethodDescriptiongetType()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.
-
Field Details
-
CODEC
The codec responsible for managing the serialization and deserialization of the bending trunk constraints. -
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:
placeTrunkin classTrunkPlacer- 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
Retrieves the formalized registry definition natively establishing type identities.- Specified by:
getTypein classTrunkPlacer- Returns:
- The specific registry type interface implementation.
-