Class WeightedBlockStateProvider
java.lang.Object
net.minecraft.world.gen.stateprovider.BlockStateProvider
net.minecraft.world.gen.stateprovider.WeightedBlockStateProvider
- Mappings:
Namespace Name official dhi
intermediary net/minecraft/class_4657
named net/minecraft/world/gen/stateprovider/WeightedBlockStateProvider
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WeightedBlockStateProvider>
private final DataPool<BlockState>
Fields inherited from class net.minecraft.world.gen.stateprovider.BlockStateProvider
TYPE_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockState
(Random random, BlockPos pos) Returns a provided block state.protected BlockStateProviderType<?>
getType()
Returns the type of this block state provider.private static com.mojang.serialization.DataResult<WeightedBlockStateProvider>
wrap
(DataPool<BlockState> states) Methods inherited from class net.minecraft.world.gen.stateprovider.BlockStateProvider
of, of
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official b
Ldhi;b:Lcom/mojang/serialization/Codec;
intermediary field_24946
Lnet/minecraft/class_4657;field_24946:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;CODEC:Lcom/mojang/serialization/Codec;
-
states
- Mappings:
Namespace Name Mixin selector official c
Ldhi;c:Laxw;
intermediary field_21315
Lnet/minecraft/class_4657;field_21315:Lnet/minecraft/class_6005;
named states
Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;states:Lnet/minecraft/util/collection/DataPool;
-
-
Constructor Details
-
WeightedBlockStateProvider
- Mappings:
Namespace Name Mixin selector official <init>
Ldhi;<init>(Laxw;)V
intermediary <init>
Lnet/minecraft/class_4657;<init>(Lnet/minecraft/class_6005;)V
named <init>
Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;<init>(Lnet/minecraft/util/collection/DataPool;)V
-
WeightedBlockStateProvider
- Mappings:
Namespace Name Mixin selector official <init>
Ldhi;<init>(Laxw$a;)V
intermediary <init>
Lnet/minecraft/class_4657;<init>(Lnet/minecraft/class_6005$class_6006;)V
named <init>
Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;<init>(Lnet/minecraft/util/collection/DataPool$Builder;)V
-
-
Method Details
-
wrap
private static com.mojang.serialization.DataResult<WeightedBlockStateProvider> wrap(DataPool<BlockState> states) - Mappings:
Namespace Name Mixin selector official a
Ldhi;a(Laxw;)Lcom/mojang/serialization/DataResult;
intermediary method_28868
Lnet/minecraft/class_4657;method_28868(Lnet/minecraft/class_6005;)Lcom/mojang/serialization/DataResult;
named wrap
Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;wrap(Lnet/minecraft/util/collection/DataPool;)Lcom/mojang/serialization/DataResult;
-
getType
Returns the type of this block state provider.- Specified by:
getType
in classBlockStateProvider
- Returns:
- the type of this block state provider
- Mappings:
Namespace Name Mixin selector official a
Ldgy;a()Ldgz;
intermediary method_28862
Lnet/minecraft/class_4651;method_28862()Lnet/minecraft/class_4652;
named getType
Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;getType()Lnet/minecraft/world/gen/stateprovider/BlockStateProviderType;
-
getBlockState
Returns a provided block state.- Specified by:
getBlockState
in classBlockStateProvider
- Returns:
- a provided block state
- Mappings:
Namespace Name Mixin selector official a
Ldgy;a(Lalu;Lgt;)Lcur;
intermediary method_23455
Lnet/minecraft/class_4651;method_23455(Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named getBlockState
Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;getBlockState(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-