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

    • CODEC

      public static final com.mojang.serialization.MapCodec<WeightedBlockStateProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_24946 Lnet/minecraft/class_4657;field_24946:Lcom/mojang/serialization/MapCodec;
      official b Lelk;b:Lcom/mojang/serialization/MapCodec;
    • states

      private final DataPool<BlockState> states
      Mappings:
      Namespace Name Mixin selector
      named states Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;states:Lnet/minecraft/util/collection/DataPool;
      intermediary field_21315 Lnet/minecraft/class_4657;field_21315:Lnet/minecraft/class_6005;
      official c Lelk;c:Lbrq;
  • Constructor Details

    • WeightedBlockStateProvider

      public WeightedBlockStateProvider(DataPool<BlockState> states)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;<init>(Lnet/minecraft/util/collection/DataPool;)V
      intermediary <init> Lnet/minecraft/class_4657;<init>(Lnet/minecraft/class_6005;)V
      official <init> Lelk;<init>(Lbrq;)V
    • WeightedBlockStateProvider

      public WeightedBlockStateProvider(DataPool.Builder<BlockState> states)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;<init>(Lnet/minecraft/util/collection/DataPool$Builder;)V
      intermediary <init> Lnet/minecraft/class_4657;<init>(Lnet/minecraft/class_6005$class_6006;)V
      official <init> Lelk;<init>(Lbrq$a;)V
  • Method Details

    • wrap

      private static com.mojang.serialization.DataResult<WeightedBlockStateProvider> wrap(DataPool<BlockState> states)
      Mappings:
      Namespace Name Mixin selector
      named wrap Lnet/minecraft/world/gen/stateprovider/WeightedBlockStateProvider;wrap(Lnet/minecraft/util/collection/DataPool;)Lcom/mojang/serialization/DataResult;
      intermediary method_28868 Lnet/minecraft/class_4657;method_28868(Lnet/minecraft/class_6005;)Lcom/mojang/serialization/DataResult;
      official a Lelk;a(Lbrq;)Lcom/mojang/serialization/DataResult;
    • getType

      protected BlockStateProviderType<?> getType()
      Returns the type of this block state provider.
      Specified by:
      getType in class BlockStateProvider
      Returns:
      the type of this block state provider
      Implementation Note:
      The returned block state provider type should be registered so that the type field is properly serialized.
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;getType()Lnet/minecraft/world/gen/stateprovider/BlockStateProviderType;
      intermediary method_28862 Lnet/minecraft/class_4651;method_28862()Lnet/minecraft/class_4652;
      official a Lela;a()Lelb;
    • get

      public BlockState get(Random random, BlockPos pos)
      Returns a provided block state.
      Specified by:
      get in class BlockStateProvider
      Returns:
      a provided block state
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;get(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      intermediary method_23455 Lnet/minecraft/class_4651;method_23455(Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      official a Lela;a(Lbam;Ljh;)Ldxu;