Class BlockStateProvider
java.lang.Object
net.minecraft.world.gen.stateprovider.BlockStateProvider
- Direct Known Subclasses:
- AbstractNoiseBlockStateProvider,- PillarBlockStateProvider,- RandomizedIntBlockStateProvider,- SimpleBlockStateProvider,- WeightedBlockStateProvider
A provider for block states. Results may be random or based on a block position.
- Mappings:
- Namespace - Name - named - net/minecraft/world/gen/stateprovider/BlockStateProvider- intermediary - net/minecraft/class_4651- official - eke
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract BlockStateReturns a provided block state.protected abstract BlockStateProviderType<?> getType()Returns the type of this block state provider.static SimpleBlockStateProviderReturns a block state provider that always returns the default state for the given block.static SimpleBlockStateProviderof(BlockState state) Returns a block state provider that always returns the given state.
- 
Field Details- 
TYPE_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - TYPE_CODEC- Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;TYPE_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_24937- Lnet/minecraft/class_4651;field_24937:Lcom/mojang/serialization/Codec;- official - a- Leke;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
BlockStateProviderpublic BlockStateProvider()
 
- 
- 
Method Details- 
ofReturns a block state provider that always returns the given state.- Parameters:
- state- the block state that the block state provider should return
- Returns:
- a block state provider that always returns the given state
- Mappings:
- Namespace - Name - Mixin selector - named - of- Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;of(Lnet/minecraft/block/BlockState;)Lnet/minecraft/world/gen/stateprovider/SimpleBlockStateProvider;- intermediary - method_38433- Lnet/minecraft/class_4651;method_38433(Lnet/minecraft/class_2680;)Lnet/minecraft/class_4656;- official - a- Leke;a(Ldwy;)Lekn;
 
- 
ofReturns a block state provider that always returns the default state for the given block.- Parameters:
- block- the block of the default state that the block state provider should return
- Returns:
- a block state provider that always returns the default state for the given block
- Mappings:
- Namespace - Name - Mixin selector - named - of- Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;of(Lnet/minecraft/block/Block;)Lnet/minecraft/world/gen/stateprovider/SimpleBlockStateProvider;- intermediary - method_38432- Lnet/minecraft/class_4651;method_38432(Lnet/minecraft/class_2248;)Lnet/minecraft/class_4656;- official - a- Leke;a(Ldjn;)Lekn;
 
- 
getTypeReturns the type of this block state provider.- Returns:
- the type of this block state provider
- Implementation Note:
- The returned block state provider type should be registered so that the typefield is properly serialized.
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;getType()Lnet/minecraft/world/gen/stateprovider/BlockStateProviderType;- intermediary - method_28862- Lnet/minecraft/class_4651;method_28862()Lnet/minecraft/class_4652;- official - a- Leke;a()Lekf;
 
- 
getReturns a provided block state.- Returns:
- a provided block state
- Mappings:
- Namespace - Name - Mixin selector - named - get- Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;get(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;- intermediary - method_23455- Lnet/minecraft/class_4651;method_23455(Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;- official - a- Leke;a(Lazh;Lji;)Ldwy;
 
 
-