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 dow
intermediary net/minecraft/class_5929
named net/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RandomizedIntBlockStateProvider>
private @Nullable IntProperty
private final String
private final BlockStateProvider
private final IntProvider
Fields inherited from class net.minecraft.world.gen.stateprovider.BlockStateProvider
TYPE_CODEC
-
Constructor Summary
ConstructorDescriptionRandomizedIntBlockStateProvider
(BlockStateProvider source, String propertyName, IntProvider values) RandomizedIntBlockStateProvider
(BlockStateProvider source, IntProperty property, IntProvider values) -
Method Summary
Modifier and TypeMethodDescriptionReturns a provided block state.private static IntProperty
getIntPropertyByName
(BlockState state, String propertyName) protected BlockStateProviderType<?>
getType()
Returns the type of this block state provider.Methods inherited from class net.minecraft.world.gen.stateprovider.BlockStateProvider
of, of
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official b
Ldow;b:Lcom/mojang/serialization/Codec;
intermediary field_29301
Lnet/minecraft/class_5929;field_29301:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;CODEC:Lcom/mojang/serialization/Codec;
-
source
- Mappings:
Namespace Name Mixin selector official c
Ldow;c:Ldoq;
intermediary field_29302
Lnet/minecraft/class_5929;field_29302:Lnet/minecraft/class_4651;
named source
Lnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;source:Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;
-
propertyName
- Mappings:
Namespace Name Mixin selector official d
Ldow;d:Ljava/lang/String;
intermediary field_29303
Lnet/minecraft/class_5929;field_29303:Ljava/lang/String;
named propertyName
Lnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;propertyName:Ljava/lang/String;
-
property
- Mappings:
Namespace Name Mixin selector official e
Ldow;e:Ldcy;
intermediary field_29304
Lnet/minecraft/class_5929;field_29304:Lnet/minecraft/class_2758;
named property
Lnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;property:Lnet/minecraft/state/property/IntProperty;
-
values
- Mappings:
Namespace Name Mixin selector official f
Ldow;f:Lbdb;
intermediary field_29305
Lnet/minecraft/class_5929;field_29305:Lnet/minecraft/class_6017;
named values
Lnet/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>
Ldow;<init>(Ldoq;Ldcy;Lbdb;)V
intermediary <init>
Lnet/minecraft/class_5929;<init>(Lnet/minecraft/class_4651;Lnet/minecraft/class_2758;Lnet/minecraft/class_6017;)V
named <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>
Ldow;<init>(Ldoq;Ljava/lang/String;Lbdb;)V
intermediary <init>
Lnet/minecraft/class_5929;<init>(Lnet/minecraft/class_4651;Ljava/lang/String;Lnet/minecraft/class_6017;)V
named <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
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
Ldoq;a()Ldor;
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;
-
get
Returns a provided block state.- Specified by:
get
in classBlockStateProvider
- Returns:
- a provided block state
- Mappings:
Namespace Name Mixin selector official a
Ldoq;a(Lapf;Lgu;)Ldby;
intermediary method_23455
Lnet/minecraft/class_4651;method_23455(Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named get
Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;get(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getIntPropertyByName
- Mappings:
Namespace Name Mixin selector official a
Ldow;a(Ldby;Ljava/lang/String;)Ldcy;
intermediary method_34363
Lnet/minecraft/class_5929;method_34363(Lnet/minecraft/class_2680;Ljava/lang/String;)Lnet/minecraft/class_2758;
named getIntPropertyByName
Lnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;getIntPropertyByName(Lnet/minecraft/block/BlockState;Ljava/lang/String;)Lnet/minecraft/state/property/IntProperty;
-