Class SpringFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<SpringFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.SpringFeature
A world generation feature responsible for creating isolated liquid source blocks (springs).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the spring feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new SpringFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptiongetPhase(SpringFeature.Config config) Specifies the procedural generation phase in which this feature executes.booleanplace(FeaturePlaceContext<SpringFeature.Config> context) Executes the strict boundary evaluation and potential placement of the spring block.
-
Constructor Details
-
SpringFeature
public SpringFeature()Constructs a new SpringFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the strict boundary evaluation and potential placement of the spring block.- Specified by:
placein classFeature<SpringFeature.Config>- Parameters:
context- The feature place context providing world access and configuration.- Returns:
- True if the surrounding geography matched the config and the spring was placed.
-
getPhase
Specifies the procedural generation phase in which this feature executes.- Overrides:
getPhasein classFeature<SpringFeature.Config>- Returns:
- The FLUID_SPRINGS generation phase.
-