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
official ayy
intermediary net/minecraft/class_6642
named net/minecraft/util/math/intprovider/WeightedListIntProvider
  • Field Details

    • CODEC

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

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

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

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

    • WeightedListIntProvider

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

    • get

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

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

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

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