Class WeightedList.Entry<T>

  • Enclosing class:
    WeightedList<U>

    public static class WeightedList.Entry<T>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T data  
      private double randWeight  
      private int weight  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Entry​(T p_i231542_1_, int p_i231542_2_)  
    • Field Detail

      • data

        private final T data
      • weight

        private final int weight
      • randWeight

        private double randWeight
    • Constructor Detail

      • Entry

        private Entry​(T p_i231542_1_,
                      int p_i231542_2_)
    • Method Detail

      • getRandWeight

        private double getRandWeight()
      • setRandom

        private void setRandom​(float p_220648_1_)
      • getData

        public T getData()
      • toString

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

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