Class StructureFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<StructureFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.StructureFeature
A world generation feature that delegates generation logic to a pre-defined,
saved JSON structure file within the AbyssalLib structure registry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the structure feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new StructureFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptiongetPhase(StructureFeature.Config config) Specifies the procedural generation phase in which this feature executes.booleanplace(FeaturePlaceContext<StructureFeature.Config> context) Executes the placement of the resolved structure at the origin coordinate.
-
Constructor Details
-
StructureFeature
public StructureFeature()Constructs a new StructureFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the placement of the resolved structure at the origin coordinate.- Specified by:
placein classFeature<StructureFeature.Config>- Parameters:
context- The feature place context providing world access and configuration.- Returns:
- True if the structure was resolved and successfully initiated placement.
-
getPhase
Specifies the procedural generation phase in which this feature executes.- Overrides:
getPhasein classFeature<StructureFeature.Config>- Returns:
- The SURFACE_STRUCTURES generation phase.
-