Class RandomizedIntBlockStateProvider
java.lang.Object
net.minecraft.world.gen.stateprovider.BlockStateProvider
net.minecraft.world.gen.stateprovider.RandomizedIntBlockStateProvider
A block state provider that randomizes a single
IntProperty of a block state provided by another provider.- Mappings:
Namespace Name official cxnintermediary net/minecraft/class_5929named net/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<RandomizedIntBlockStateProvider>private @Nullable IntPropertyprivate Stringprivate BlockStateProviderprivate IntProviderFields inherited from class net.minecraft.world.gen.stateprovider.BlockStateProvider
TYPE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionRandomizedIntBlockStateProvider(BlockStateProvider source, String propertyName, IntProvider values)RandomizedIntBlockStateProvider(BlockStateProvider source, IntProperty property, IntProvider values) -
Method Summary
Modifier and TypeMethodDescriptiongetBlockState(Random random, BlockPos pos)private static IntPropertygetIntPropertyByName(BlockState state, String propertyName)protected BlockStateProviderType<?>getType()
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLcxn;b:Lcom/mojang/serialization/Codec;intermediary field_29301Lnet/minecraft/class_5929;field_29301:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;CODEC:Lcom/mojang/serialization/Codec;
-
source
- Mappings:
Namespace Name Mixin selector official cLcxn;c:Lcxj;intermediary field_29302Lnet/minecraft/class_5929;field_29302:Lnet/minecraft/class_4651;named sourceLnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;source:Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;
-
propertyName
- Mappings:
Namespace Name Mixin selector official dLcxn;d:Ljava/lang/String;intermediary field_29303Lnet/minecraft/class_5929;field_29303:Ljava/lang/String;named propertyNameLnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;propertyName:Ljava/lang/String;
-
property
- Mappings:
Namespace Name Mixin selector official eLcxn;e:Lcls;intermediary field_29304Lnet/minecraft/class_5929;field_29304:Lnet/minecraft/class_2758;named propertyLnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;property:Lnet/minecraft/state/property/IntProperty;
-
values
- Mappings:
Namespace Name Mixin selector official fLcxn;f:Lari;intermediary field_29305Lnet/minecraft/class_5929;field_29305:Lnet/minecraft/class_6017;named valuesLnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;values:Lnet/minecraft/util/math/intprovider/IntProvider;
-
-
Constructor Details
-
RandomizedIntBlockStateProvider
public RandomizedIntBlockStateProvider(BlockStateProvider source, IntProperty property, IntProvider values)- Mappings:
Namespace Name Mixin selector official <init>Lcxn;<init>(Lcxj;Lcls;Lari;)Vintermediary <init>Lnet/minecraft/class_5929;<init>(Lnet/minecraft/class_4651;Lnet/minecraft/class_2758;Lnet/minecraft/class_6017;)Vnamed <init>Lnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;<init>(Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;Lnet/minecraft/state/property/IntProperty;Lnet/minecraft/util/math/intprovider/IntProvider;)V
-
RandomizedIntBlockStateProvider
public RandomizedIntBlockStateProvider(BlockStateProvider source, String propertyName, IntProvider values)- Mappings:
Namespace Name Mixin selector official <init>Lcxn;<init>(Lcxj;Ljava/lang/String;Lari;)Vintermediary <init>Lnet/minecraft/class_5929;<init>(Lnet/minecraft/class_4651;Ljava/lang/String;Lnet/minecraft/class_6017;)Vnamed <init>Lnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;<init>(Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;Ljava/lang/String;Lnet/minecraft/util/math/intprovider/IntProvider;)V
-
-
Method Details
-
getType
- Specified by:
getTypein classBlockStateProvider- Mappings:
Namespace Name Mixin selector official aLcxj;a()Lcxk;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;
-
getBlockState
- Specified by:
getBlockStatein classBlockStateProvider- Mappings:
Namespace Name Mixin selector official aLcxj;a(Ljava/util/Random;Lgg;)Lcks;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;
-
getIntPropertyByName
- Mappings:
Namespace Name Mixin selector official aLcxn;a(Lcks;Ljava/lang/String;)Lcls;intermediary method_34363Lnet/minecraft/class_5929;method_34363(Lnet/minecraft/class_2680;Ljava/lang/String;)Lnet/minecraft/class_2758;named getIntPropertyByNameLnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;getIntPropertyByName(Lnet/minecraft/block/BlockState;Ljava/lang/String;)Lnet/minecraft/state/property/IntProperty;
-