Class SimpleBlockStateProvider
java.lang.Object
com.github.darksoulq.abyssallib.world.gen.state.provider.BlockStateProvider
com.github.darksoulq.abyssallib.world.gen.state.provider.impl.SimpleBlockStateProvider
A block state provider that always returns a single, unchanging block state.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<SimpleBlockStateProvider> The codec used for serializing and deserializing the simple provider.static final BlockStateProviderType<SimpleBlockStateProvider> The registered type definition for the simple block state provider. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new SimpleBlockStateProvider. -
Method Summary
Modifier and TypeMethodDescriptionReturns the configured static block state regardless of location or randomness.getType()Retrieves the specific type definition for this provider.
-
Field Details
-
CODEC
The codec used for serializing and deserializing the simple provider. -
TYPE
The registered type definition for the simple block state provider.
-
-
Constructor Details
-
SimpleBlockStateProvider
Constructs a new SimpleBlockStateProvider.- Parameters:
state- The static block info to provide.
-
-
Method Details
-
getState
Returns the configured static block state regardless of location or randomness.- Specified by:
getStatein classBlockStateProvider- Parameters:
random- The random source.location- The placement location.- Returns:
- The static block info.
-
getType
Retrieves the specific type definition for this provider.- Specified by:
getTypein classBlockStateProvider- Returns:
- The block state provider type.
-