Class WeightedList.Entry<T>

java.lang.Object
net.minecraft.util.collection.WeightedList.Entry<T>
Enclosing class:
WeightedList<U>

public static class WeightedList.Entry<T> extends Object
Mappings:
Namespace Name
named net/minecraft/util/collection/WeightedList$Entry
intermediary net/minecraft/class_6032$class_6033
official cah$a
  • Field Details

    • data

      final T data
      Mappings:
      Namespace Name Mixin selector
      named data Lnet/minecraft/util/collection/WeightedList$Entry;data:Ljava/lang/Object;
      intermediary field_30171 Lnet/minecraft/class_6032$class_6033;field_30171:Ljava/lang/Object;
      official a Lcah$a;a:Ljava/lang/Object;
    • weight

      final int weight
      Mappings:
      Namespace Name Mixin selector
      named weight Lnet/minecraft/util/collection/WeightedList$Entry;weight:I
      intermediary field_30172 Lnet/minecraft/class_6032$class_6033;field_30172:I
      official b Lcah$a;b:I
    • shuffledOrder

      private double shuffledOrder
      Mappings:
      Namespace Name Mixin selector
      named shuffledOrder Lnet/minecraft/util/collection/WeightedList$Entry;shuffledOrder:D
      intermediary field_30173 Lnet/minecraft/class_6032$class_6033;field_30173:D
      official c Lcah$a;c:D
  • Constructor Details

    • Entry

      Entry(T data, int weight)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/collection/WeightedList$Entry;<init>(Ljava/lang/Object;I)V
      intermediary <init> Lnet/minecraft/class_6032$class_6033;<init>(Ljava/lang/Object;I)V
      official <init> Lcah$a;<init>(Ljava/lang/Object;I)V
  • Method Details

    • getShuffledOrder

      private double getShuffledOrder()
      Mappings:
      Namespace Name Mixin selector
      named getShuffledOrder Lnet/minecraft/util/collection/WeightedList$Entry;getShuffledOrder()D
      intermediary method_35102 Lnet/minecraft/class_6032$class_6033;method_35102()D
      official c Lcah$a;c()D
    • setShuffledOrder

      void setShuffledOrder(float random)
      Mappings:
      Namespace Name Mixin selector
      named setShuffledOrder Lnet/minecraft/util/collection/WeightedList$Entry;setShuffledOrder(F)V
      intermediary method_35096 Lnet/minecraft/class_6032$class_6033;method_35096(F)V
      official a Lcah$a;a(F)V
    • getElement

      public T getElement()
      Mappings:
      Namespace Name Mixin selector
      named getElement Lnet/minecraft/util/collection/WeightedList$Entry;getElement()Ljava/lang/Object;
      intermediary method_35095 Lnet/minecraft/class_6032$class_6033;method_35095()Ljava/lang/Object;
      official a Lcah$a;a()Ljava/lang/Object;
    • getWeight

      public int getWeight()
      Mappings:
      Namespace Name Mixin selector
      named getWeight Lnet/minecraft/util/collection/WeightedList$Entry;getWeight()I
      intermediary method_35100 Lnet/minecraft/class_6032$class_6033;method_35100()I
      official b Lcah$a;b()I
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • createCodec

      public static <E> com.mojang.serialization.Codec<WeightedList.Entry<E>> createCodec(com.mojang.serialization.Codec<E> codec)
      Mappings:
      Namespace Name Mixin selector
      named createCodec Lnet/minecraft/util/collection/WeightedList$Entry;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_35099 Lnet/minecraft/class_6032$class_6033;method_35099(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official a Lcah$a;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;