Class TreeFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<TreeFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.TreeFeature
Procedural feature managing the algorithmic construction of complex, modular trees.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordStructure detailing the placement algorithms utilized by the tree feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new TreeFeature initialized with its corresponding configuration codec. -
Method Summary
Modifier and TypeMethodDescriptiongetPhase(TreeFeature.Config config) Specifies the procedural generation phase in which this feature executes.booleanplace(FeaturePlaceContext<TreeFeature.Config> context) Executes the tree generation algorithm combining roots, trunks, foliage, and decorators.
-
Constructor Details
-
TreeFeature
public TreeFeature()Constructs a new TreeFeature initialized with its corresponding configuration codec.
-
-
Method Details
-
getPhase
Specifies the procedural generation phase in which this feature executes.- Overrides:
getPhasein classFeature<TreeFeature.Config>- Parameters:
config- The configuration to evaluate.- Returns:
- The VEGETAL_DECORATION generation phase.
-
place
Executes the tree generation algorithm combining roots, trunks, foliage, and decorators.- Specified by:
placein classFeature<TreeFeature.Config>- Parameters:
context- The feature placement context governing world rules.- Returns:
- True if the tree generated successfully.
-