Class BlockAttachedFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<BlockAttachedFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.BlockAttachedFeature
A world generation feature that places a single block attached to a specific face
of an existing, valid supporting block.
This feature evaluates a list of allowed directions. If the block immediately adjacent to the origin in one of those directions matches the allowed support blocks, the feature successfully places its state at the origin.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the block attached feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new BlockAttachedFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptionbooleanExecutes the placement logic by verifying structural support in the allowed directions.
-
Constructor Details
-
BlockAttachedFeature
public BlockAttachedFeature()Constructs a new BlockAttachedFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the placement logic by verifying structural support in the allowed directions.- Specified by:
placein classFeature<BlockAttachedFeature.Config>- Parameters:
context- The feature place context providing world access and configuration.- Returns:
- True if a valid support was found and the block was placed.
-