Class WeightedBlockStateProvider
java.lang.Object
net.minecraft.world.gen.stateprovider.BlockStateProvider
net.minecraft.world.gen.stateprovider.WeightedBlockStateProvider
public class WeightedBlockStateProvider extends BlockStateProvider
- Mappings:
Namespace Name official ctnintermediary net/minecraft/class_4657named net/minecraft/world/gen/stateprovider/WeightedBlockStateProvider
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<WeightedBlockStateProvider>CODECprivate WeightedList<BlockState>statesFields inherited from class net.minecraft.world.gen.stateprovider.BlockStateProvider
TYPE_CODEC -
Constructor Summary
Constructors Modifier Constructor Description WeightedBlockStateProvider()privateWeightedBlockStateProvider(WeightedList<BlockState> states) -
Method Summary
Modifier and Type Method Description WeightedBlockStateProvideraddState(BlockState state, int weight)BlockStategetBlockState(Random random, BlockPos pos)protected BlockStateProviderType<?>getType()private static com.mojang.serialization.DataResult<WeightedBlockStateProvider>wrap(WeightedList<BlockState> states)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLctn;b:Lcom/mojang/serialization/Codec;intermediary field_24946Lnet/minecraft/class_4657;field_24946:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;CODEC:Lcom/mojang/serialization/Codec;
-
states
- Mappings:
Namespace Name Mixin selector official cLctn;c:Lavr;intermediary field_21315Lnet/minecraft/class_4657;field_21315:Lnet/minecraft/class_4131;named statesLnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;states:Lnet/minecraft/util/collection/WeightedList;
-
-
Constructor Details
-
WeightedBlockStateProvider
- Mappings:
Namespace Name Mixin selector official <init>Lctn;<init>(Lavr;)Vintermediary <init>Lnet/minecraft/class_4657;<init>(Lnet/minecraft/class_4131;)Vnamed <init>Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;<init>(Lnet/minecraft/util/collection/WeightedList;)V
-
WeightedBlockStateProvider
public WeightedBlockStateProvider()
-
-
Method Details
-
wrap
private static com.mojang.serialization.DataResult<WeightedBlockStateProvider> wrap(WeightedList<BlockState> states)- Mappings:
Namespace Name Mixin selector official aLctn;a(Lavr;)Lcom/mojang/serialization/DataResult;intermediary method_28868Lnet/minecraft/class_4657;method_28868(Lnet/minecraft/class_4131;)Lcom/mojang/serialization/DataResult;named wrapLnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;wrap(Lnet/minecraft/util/collection/WeightedList;)Lcom/mojang/serialization/DataResult;
-
getType
- Specified by:
getTypein classBlockStateProvider- Mappings:
Namespace Name Mixin selector official aLcth;a()Lcti;intermediary method_28862Lnet/minecraft/class_4651;method_28862()Lnet/minecraft/class_4652;named getTypeLnet/minecraft/world/gen/stateprovider/BlockStateProvider;getType()Lnet/minecraft/world/gen/stateprovider/BlockStateProviderType;
-
addState
- Mappings:
Namespace Name Mixin selector official aLctn;a(Lcht;I)Lctn;intermediary method_23458Lnet/minecraft/class_4657;method_23458(Lnet/minecraft/class_2680;I)Lnet/minecraft/class_4657;named addStateLnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;addState(Lnet/minecraft/block/BlockState;I)Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;
-
getBlockState
- Specified by:
getBlockStatein classBlockStateProvider- Mappings:
Namespace Name Mixin selector official aLcth;a(Ljava/util/Random;Lfx;)Lcht;intermediary method_23455Lnet/minecraft/class_4651;method_23455(Ljava/util/Random;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/gen/stateprovider/BlockStateProvider;getBlockState(Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-