Class MangroveRootPlacer
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.tree.root.RootPlacer
com.github.darksoulq.abyssallib.world.gen.feature.tree.root.MangroveRootPlacer
A root placer that generates sprawling, arching structural roots.
Because roots lift the tree, this placer recalculates the trunk's starting origin and returns the new apex coordinate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<MangroveRootPlacer> The codec used for serializing and deserializing the mangrove root placer.static final RootPlacerType<MangroveRootPlacer> The registered type definition for the mangrove root placer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()Retrieves the specific type definition for this root placer.org.bukkit.LocationplaceRoots(WorldGenAccess level, Random random, org.bukkit.Location origin, BlockStateProvider rootProvider, BlockStateProvider dirtProvider) Generates a sprawling root structure and elevates the central trunk origin.
-
Field Details
-
CODEC
The codec used for serializing and deserializing the mangrove root placer. -
TYPE
The registered type definition for the mangrove root placer.
-
-
Constructor Details
-
MangroveRootPlacer
public MangroveRootPlacer()Constructs a new MangroveRootPlacer.
-
-
Method Details
-
placeRoots
public org.bukkit.Location placeRoots(WorldGenAccess level, Random random, org.bukkit.Location origin, BlockStateProvider rootProvider, BlockStateProvider dirtProvider) Generates a sprawling root structure and elevates the central trunk origin.- Specified by:
placeRootsin classRootPlacer- Parameters:
level- The world generation accessor.random- The deterministic random source.origin- The requested base location of the tree.rootProvider- The provider defining the material of the roots.dirtProvider- The provider to optionally enforce the ground beneath the roots.- Returns:
- The new, elevated origin location where the trunk should begin.
-
getType
Retrieves the specific type definition for this root placer.- Specified by:
getTypein classRootPlacer- Returns:
- The root placer type associated with this instance.
-