Class SimpleBlockFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<SimpleBlockFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.SimpleBlockFeature
A fundamental world generation feature that places a single block state dynamically.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the simple block feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new SimpleBlockFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptiongetPhase(SimpleBlockFeature.Config config) Specifies the procedural generation phase in which this feature executes.booleanExecutes the placement of the single block at the origin coordinate.
-
Constructor Details
-
SimpleBlockFeature
public SimpleBlockFeature()Constructs a new SimpleBlockFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the placement of the single block at the origin coordinate.- Specified by:
placein classFeature<SimpleBlockFeature.Config>- Parameters:
context- The feature place context providing world access and configuration.- Returns:
- True if the block was successfully placed.
-
getPhase
Specifies the procedural generation phase in which this feature executes.- Overrides:
getPhasein classFeature<SimpleBlockFeature.Config>- Returns:
- The VEGETAL_DECORATION generation phase.
-