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
official bas$a
intermediary net/minecraft/class_6032$class_6033
named net/minecraft/util/collection/WeightedList$Entry
  • Field Details

    • data

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

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

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

    • Entry

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

    • getShuffledOrder

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

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

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

      public int getWeight()
      Mappings:
      Namespace Name Mixin selector
      official b Lbas$a;b()I
      intermediary method_35100 Lnet/minecraft/class_6032$class_6033;method_35100()I
      named getWeight Lnet/minecraft/util/collection/WeightedList$Entry;getWeight()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
      official a Lbas$a;a(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;
      named createCodec Lnet/minecraft/util/collection/WeightedList$Entry;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;