Class WeightedListIntProvider

java.lang.Object
net.minecraft.util.math.intprovider.IntProvider
net.minecraft.util.math.intprovider.WeightedListIntProvider

public class WeightedListIntProvider extends IntProvider
Mappings:
Namespace Name
named net/minecraft/util/math/intprovider/WeightedListIntProvider
intermediary net/minecraft/class_6642
official bsu
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<WeightedListIntProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/math/intprovider/WeightedListIntProvider;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_35035 Lnet/minecraft/class_6642;field_35035:Lcom/mojang/serialization/MapCodec;
      official a Lbsu;a:Lcom/mojang/serialization/MapCodec;
    • weightedList

      private final DataPool<IntProvider> weightedList
      Mappings:
      Namespace Name Mixin selector
      named weightedList Lnet/minecraft/util/math/intprovider/WeightedListIntProvider;weightedList:Lnet/minecraft/util/collection/DataPool;
      intermediary field_35036 Lnet/minecraft/class_6642;field_35036:Lnet/minecraft/class_6005;
      official b Lbsu;b:Lbrq;
    • min

      private final int min
      Mappings:
      Namespace Name Mixin selector
      named min Lnet/minecraft/util/math/intprovider/WeightedListIntProvider;min:I
      intermediary field_35037 Lnet/minecraft/class_6642;field_35037:I
      official f Lbsu;f:I
    • max

      private final int max
      Mappings:
      Namespace Name Mixin selector
      named max Lnet/minecraft/util/math/intprovider/WeightedListIntProvider;max:I
      intermediary field_35038 Lnet/minecraft/class_6642;field_35038:I
      official g Lbsu;g:I
  • Constructor Details

    • WeightedListIntProvider

      public WeightedListIntProvider(DataPool<IntProvider> weightedList)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/intprovider/WeightedListIntProvider;<init>(Lnet/minecraft/util/collection/DataPool;)V
      intermediary <init> Lnet/minecraft/class_6642;<init>(Lnet/minecraft/class_6005;)V
      official <init> Lbsu;<init>(Lbrq;)V
  • Method Details

    • get

      public int get(Random random)
      Specified by:
      get in class IntProvider
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/util/math/intprovider/IntProvider;get(Lnet/minecraft/util/math/random/Random;)I
      intermediary method_35008 Lnet/minecraft/class_6017;method_35008(Lnet/minecraft/class_5819;)I
      official a Lbsn;a(Lbam;)I
    • getMin

      public int getMin()
      Specified by:
      getMin in class IntProvider
      Mappings:
      Namespace Name Mixin selector
      named getMin Lnet/minecraft/util/math/intprovider/IntProvider;getMin()I
      intermediary method_35009 Lnet/minecraft/class_6017;method_35009()I
      official a Lbsn;a()I
    • getMax

      public int getMax()
      Specified by:
      getMax in class IntProvider
      Mappings:
      Namespace Name Mixin selector
      named getMax Lnet/minecraft/util/math/intprovider/IntProvider;getMax()I
      intermediary method_35011 Lnet/minecraft/class_6017;method_35011()I
      official b Lbsn;b()I
    • getType

      public IntProviderType<?> getType()
      Specified by:
      getType in class IntProvider
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/util/math/intprovider/IntProvider;getType()Lnet/minecraft/util/math/intprovider/IntProviderType;
      intermediary method_35012 Lnet/minecraft/class_6017;method_35012()Lnet/minecraft/class_6018;
      official c Lbsn;c()Lbso;