Class VegetationPatchFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<VegetationPatchFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.VegetationPatchFeature
A sophisticated world generation feature that alters the terrain surface and places
vegetation on top of the newly altered ground.
This is used for generating biomes like Lush Caves or Mossy patches, where the stone/dirt must first be converted into a base block (e.g., Moss) before vegetation (e.g., Azaleas) is scattered across it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the vegetation patch feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new VegetationPatchFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the procedural generation phase in which this feature executes.booleanExecutes the terrain alteration and vegetation placement logic.
-
Constructor Details
-
VegetationPatchFeature
public VegetationPatchFeature()Constructs a new VegetationPatchFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the terrain alteration and vegetation placement logic.- Specified by:
placein classFeature<VegetationPatchFeature.Config>- Parameters:
context- The feature place context providing world access and configuration.- Returns:
- True if at least one ground block was replaced.
-
getPhase
Specifies the procedural generation phase in which this feature executes.- Overrides:
getPhasein classFeature<VegetationPatchFeature.Config>- Returns:
- The VEGETAL_DECORATION generation phase.
-