Class OreFeature
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<OreFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.OreFeature
A world generation feature that generates clusters of ore veins.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfiguration record for the ore feature.static final recordA record representing a specific replacement rule for the ore feature. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new OreFeature with the associated configuration codec. -
Method Summary
Modifier and TypeMethodDescriptiongetPhase(OreFeature.Config config) Specifies the procedural generation phase in which this feature executes.booleanplace(FeaturePlaceContext<OreFeature.Config> context) Executes the placement logic for the ore cluster.
-
Constructor Details
-
OreFeature
public OreFeature()Constructs a new OreFeature with the associated configuration codec.
-
-
Method Details
-
place
Executes the placement logic for the ore cluster.- Specified by:
placein classFeature<OreFeature.Config>- Parameters:
context- The feature place context providing world access, origin, random source, and configuration.- Returns:
- True if the feature was successfully triggered.
-
getPhase
Specifies the procedural generation phase in which this feature executes.- Overrides:
getPhasein classFeature<OreFeature.Config>- Returns:
- The UNDERGROUND_ORES generation phase.
-