Class WeightedList<U>

java.lang.Object
net.minecraft.util.WeightedList<U>

public class WeightedList<U> extends Object
  • Field Details

  • Constructor Details

    • WeightedList

      public WeightedList()
    • WeightedList

      private WeightedList(List<WeightedList.Entry<U>> p_i231541_1_)
  • Method Details

    • codec

      public static <U> com.mojang.serialization.Codec<WeightedList<U>> codec(com.mojang.serialization.Codec<U> p_234002_0_)
    • add

      public WeightedList<U> add(U p_226313_1_, int p_226313_2_)
    • shuffle

      public WeightedList<U> shuffle()
    • shuffle

      public WeightedList<U> shuffle(Random p_226314_1_)
    • isEmpty

      public boolean isEmpty()
    • stream

      public Stream<U> stream()
    • getOne

      public U getOne(Random p_226318_1_)
    • toString

      public String toString()
      Overrides:
      toString in class Object