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 cxq
intermediary net/minecraft/class_4657
named net/minecraft/world/gen/stateprovider/WeightedBlockStateProvider
  • Field Details

    • CODEC

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

      private final DataPool<BlockState> states
      Mappings:
      Namespace Name Mixin selector
      official c Lcxq;c:Laqo;
      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

      public WeightedBlockStateProvider(DataPool<BlockState> states)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcxq;<init>(Laqo;)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

      public WeightedBlockStateProvider(DataPool.Builder<BlockState> builder)
  • Method Details

    • wrap

      private static com.mojang.serialization.DataResult<WeightedBlockStateProvider> wrap(DataPool<BlockState> states)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxq;a(Laqo;)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

      protected BlockStateProviderType<?> getType()
      Specified by:
      getType in class BlockStateProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lcxj;a()Lcxk;
      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 Lcxj;a(Ljava/util/Random;Lgg;)Lcks;
      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;