Class PillarFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<PillarFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.PillarFeature
A world generation feature that generates a continuous vertical pillar of blocks.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the pillar feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new PillarFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptiongetPhase(PillarFeature.Config config) Specifies the procedural generation phase in which this feature executes.booleanplace(FeaturePlaceContext<PillarFeature.Config> context) Executes the placement logic to build the vertical column.
-
Constructor Details
-
PillarFeature
public PillarFeature()Constructs a new PillarFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the placement logic to build the vertical column.- Specified by:
placein classFeature<PillarFeature.Config>- Parameters:
context- The feature place context providing world access and configuration.- Returns:
- True if at least one block was successfully placed.
-
getPhase
Specifies the procedural generation phase in which this feature executes.- Overrides:
getPhasein classFeature<PillarFeature.Config>- Returns:
- The UNDERGROUND_DECORATION generation phase.
-