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 avr$a
intermediary net/minecraft/class_4131$class_4132
named net/minecraft/util/collection/WeightedList$Entry
  • Field Details

    • data

      private final T data
      Mappings:
      Namespace Name Mixin selector
      official a Lavr$a;a:Ljava/lang/Object;
      intermediary field_18400 Lnet/minecraft/class_4131$class_4132;field_18400:Ljava/lang/Object;
      named data Lnet/minecraft/util/collection/WeightedList$Entry;data:Ljava/lang/Object;
    • weight

      private final int weight
      Mappings:
      Namespace Name Mixin selector
      official b Lavr$a;b:I
      intermediary field_18401 Lnet/minecraft/class_4131$class_4132;field_18401:I
      named weight Lnet/minecraft/util/collection/WeightedList$Entry;weight:I
    • shuffledOrder

      private double shuffledOrder
      Mappings:
      Namespace Name Mixin selector
      official c Lavr$a;c:D
      intermediary field_18402 Lnet/minecraft/class_4131$class_4132;field_18402:D
      named shuffledOrder Lnet/minecraft/util/collection/WeightedList$Entry;shuffledOrder:D
  • Constructor Details

    • Entry

      private Entry​(T data, int weight)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lavr$a;<init>(Ljava/lang/Object;I)V
      intermediary <init> Lnet/minecraft/class_4131$class_4132;<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 Lavr$a;c()D
      intermediary method_19033 Lnet/minecraft/class_4131$class_4132;method_19033()D
      named getShuffledOrder Lnet/minecraft/util/collection/WeightedList$Entry;getShuffledOrder()D
    • setShuffledOrder

      private void setShuffledOrder​(float random)
      Mappings:
      Namespace Name Mixin selector
      official a Lavr$a;a(F)V
      intermediary method_19034 Lnet/minecraft/class_4131$class_4132;method_19034(F)V
      named setShuffledOrder Lnet/minecraft/util/collection/WeightedList$Entry;setShuffledOrder(F)V
    • getElement

      public T getElement()
      Mappings:
      Namespace Name Mixin selector
      official a Lavr$a;a()Ljava/lang/Object;
      intermediary method_19035 Lnet/minecraft/class_4131$class_4132;method_19035()Ljava/lang/Object;
      named getElement Lnet/minecraft/util/collection/WeightedList$Entry;getElement()Ljava/lang/Object;
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lavr$a;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_4131$class_4132;toString()Ljava/lang/String;
      named toString Lnet/minecraft/util/collection/WeightedList$Entry;toString()Ljava/lang/String;
    • 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 Lavr$a;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_28341 Lnet/minecraft/class_4131$class_4132;method_28341(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;