Class LakeFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<LakeFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.LakeFeature
A world generation feature that generates a randomized lake or underground pool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the lake feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new LakeFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptiongetPhase(LakeFeature.Config config) Specifies the procedural generation phase in which this feature executes.booleanplace(FeaturePlaceContext<LakeFeature.Config> context) Executes the generation of the lake cavity and fluid placement.
-
Constructor Details
-
LakeFeature
public LakeFeature()Constructs a new LakeFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the generation of the lake cavity and fluid placement.- Specified by:
placein classFeature<LakeFeature.Config>- Parameters:
context- The feature place context providing world access and configuration.- Returns:
- True if the lake was successfully generated.
-
getPhase
Specifies the procedural generation phase in which this feature executes.- Overrides:
getPhasein classFeature<LakeFeature.Config>- Returns:
- The LAKES generation phase.
-