Class WeightedList.Entry<T>

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

public static class WeightedList.Entry<T> extends Object
  • Field Details

    • data

      private final T data
    • weight

      private final int weight
    • randWeight

      private double randWeight
  • Constructor Details

    • Entry

      private Entry(T p_i231542_1_, int p_i231542_2_)
  • Method Details

    • getRandWeight

      private double getRandWeight()
    • setRandom

      private void setRandom(float p_220648_1_)
    • getData

      public T getData()
    • toString

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

      public static <E> com.mojang.serialization.Codec<WeightedList.Entry<E>> codec(com.mojang.serialization.Codec<E> p_234008_0_)