Class BlockStateProvider
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.state.provider.BlockStateProvider
- Direct Known Subclasses:
NoiseThresholdBlockStateProvider, RotatedBlockStateProvider, SimpleBlockStateProvider, WeightedBlockStateProvider
The base class for all block state providers.
Providers are used by features to dynamically determine which block state to place at a specific coordinate, allowing for randomization, weighting, and noise-driven terrain composition.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<BlockStateProvider> Polymorphic codec for serializing and deserializing any block state provider implementation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BlockInfoDetermines the specific block info to place at the given location.abstract BlockStateProviderType<?> getType()Retrieves the provider type used for identifying this specific implementation.
-
Field Details
-
CODEC
Polymorphic codec for serializing and deserializing any block state provider implementation.
-
-
Constructor Details
-
BlockStateProvider
public BlockStateProvider()
-
-
Method Details
-
getState
-
getType
Retrieves the provider type used for identifying this specific implementation.- Returns:
- The block state provider type associated with this instance.
-