Class BlockPatchFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<BlockPatchFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.BlockPatchFeature
A world generation feature that scatters blocks dynamically around an origin point.
Upgraded to utilize the Block State Provider API, allowing the scattered patch to consist of randomized or noise-driven block mixtures rather than a single static type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the block patch feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new BlockPatchFeature with its associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptiongetPhase(BlockPatchFeature.Config config) Specifies the procedural generation phase in which this feature executes.booleanplace(FeaturePlaceContext<BlockPatchFeature.Config> context) Executes the scattering placement logic using the state provider.
-
Constructor Details
-
BlockPatchFeature
public BlockPatchFeature()Constructs a new BlockPatchFeature with its associated configuration codec.
-
-
Method Details
-
place
Executes the scattering placement logic using the state provider.- Specified by:
placein classFeature<BlockPatchFeature.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<BlockPatchFeature.Config>- Returns:
- The VEGETAL_DECORATION generation phase.
-