Class DiskFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<DiskFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.DiskFeature
A world generation feature that generates a flat, circular disk dynamically.
Upgraded to utilize the Block State Provider API, enabling features like mixed gravel and sand ocean floors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the disk feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new DiskFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptionbooleanplace(FeaturePlaceContext<DiskFeature.Config> context) Executes the circular placement logic centered on the given origin.
-
Constructor Details
-
DiskFeature
public DiskFeature()Constructs a new DiskFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the circular placement logic centered on the given origin.- Specified by:
placein classFeature<DiskFeature.Config>- Parameters:
context- The feature place context providing world access and configuration.- Returns:
- True if at least one block was successfully placed.
-