Class MultifaceGrowthFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<MultifaceGrowthFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.MultifaceGrowthFeature
A world generation feature responsible for placing blocks that cling to solid surfaces.
This feature checks the immediately adjacent blocks around the origin. If any adjacent block matches the allowed placement materials, it successfully places the specified organic growth (e.g., glow lichen, vines, or sculk veins).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the multiface growth feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new MultifaceGrowthFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the procedural generation phase in which this feature executes.booleanExecutes the boundary evaluation and potential placement of the growth block.
-
Constructor Details
-
MultifaceGrowthFeature
public MultifaceGrowthFeature()Constructs a new MultifaceGrowthFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the boundary evaluation and potential placement of the growth block.- Specified by:
placein classFeature<MultifaceGrowthFeature.Config>- Parameters:
context- The feature place context providing world access and configuration.- Returns:
- True if a valid adjacent block was found and the growth was placed.
-
getPhase
Specifies the procedural generation phase in which this feature executes.- Overrides:
getPhasein classFeature<MultifaceGrowthFeature.Config>- Returns:
- The UNDERGROUND_DECORATION generation phase.
-