Class RandomizedIntBlockStateProvider

java.lang.Object
net.minecraft.world.gen.stateprovider.BlockStateProvider
net.minecraft.world.gen.stateprovider.RandomizedIntBlockStateProvider

public class RandomizedIntBlockStateProvider
extends BlockStateProvider
A block state provider that randomizes a single IntProperty of a block state provided by another provider.
Mappings:
Namespace Name
official cvc
intermediary net/minecraft/class_5929
named net/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<RandomizedIntBlockStateProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Lcvc;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

      private final BlockStateProvider source
      Mappings:
      Namespace Name Mixin selector
      official c Lcvc;c:Lcuy;
      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

      private final String propertyName
      Mappings:
      Namespace Name Mixin selector
      official d Lcvc;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

      @Nullable private @Nullable IntProperty property
      Mappings:
      Namespace Name Mixin selector
      official e Lcvc;e:Lcjo;
      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

      private final UniformIntDistribution values
      Mappings:
      Namespace Name Mixin selector
      official f Lcvc;f:Lahh;
      intermediary field_29305 Lnet/minecraft/class_5929;field_29305:Lnet/minecraft/class_5428;
      named values Lnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;values:Lnet/minecraft/world/gen/UniformIntDistribution;
  • Constructor Details

    • RandomizedIntBlockStateProvider

      public RandomizedIntBlockStateProvider​(BlockStateProvider source, IntProperty property, UniformIntDistribution values)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcvc;<init>(Lcuy;Lcjo;Lahh;)V
      intermediary <init> Lnet/minecraft/class_5929;<init>(Lnet/minecraft/class_4651;Lnet/minecraft/class_2758;Lnet/minecraft/class_5428;)V
      named <init> Lnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;<init>(Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;Lnet/minecraft/state/property/IntProperty;Lnet/minecraft/world/gen/UniformIntDistribution;)V
    • RandomizedIntBlockStateProvider

      public RandomizedIntBlockStateProvider​(BlockStateProvider source, String propertyName, UniformIntDistribution values)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcvc;<init>(Lcuy;Ljava/lang/String;Lahh;)V
      intermediary <init> Lnet/minecraft/class_5929;<init>(Lnet/minecraft/class_4651;Ljava/lang/String;Lnet/minecraft/class_5428;)V
      named <init> Lnet/minecraft/world/gen/stateprovider/RandomizedIntBlockStateProvider;<init>(Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;Ljava/lang/String;Lnet/minecraft/world/gen/UniformIntDistribution;)V
  • Method Details

    • getType

      protected BlockStateProviderType<?> getType()
      Specified by:
      getType in class BlockStateProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lcuy;a()Lcuz;
      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

      public BlockState getBlockState​(Random random, BlockPos pos)
      Specified by:
      getBlockState in class BlockStateProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lcuy;a(Ljava/util/Random;Lfx;)Lcio;
      intermediary method_23455 Lnet/minecraft/class_4651;method_23455(Ljava/util/Random;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;getBlockState(Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • getIntPropertyByName

      private static IntProperty getIntPropertyByName​(BlockState state, String propertyName)
      Mappings:
      Namespace Name Mixin selector
      official a Lcvc;a(Lcio;Ljava/lang/String;)Lcjo;
      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;