Class WaterloggedVegetationFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<WaterloggedVegetationFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.WaterloggedVegetationFeature
A specialized patch feature for scattering vegetation strictly inside water columns.
This is designed for placing aquatic plants like seagrass, kelp, or corals. It ensures that the generated vegetation replaces existing water blocks while remaining properly supported by solid blocks underneath.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the waterlogged vegetation feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new WaterloggedVegetationFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the procedural generation phase in which this feature executes.booleanExecutes the aquatic scattering placement logic.
-
Constructor Details
-
WaterloggedVegetationFeature
public WaterloggedVegetationFeature()Constructs a new WaterloggedVegetationFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the aquatic scattering placement logic.- Specified by:
placein classFeature<WaterloggedVegetationFeature.Config>- Parameters:
context- The feature place context providing world access and configuration.- Returns:
- True if at least one waterlogged plant was successfully placed.
-
getPhase
Specifies the procedural generation phase in which this feature executes.- Overrides:
getPhasein classFeature<WaterloggedVegetationFeature.Config>- Returns:
- The VEGETAL_DECORATION generation phase.
-