public static class WeightedList.Entry<T> extends Object
Modifier and Type | Field and Description |
---|---|
private T |
item |
private double |
shuffledOrder |
private int |
weight |
Modifier and Type | Method and Description |
---|---|
T |
getElement() |
private double |
getShuffledOrder() |
static <E> com.mojang.serialization.Codec<WeightedList.Entry<E>> |
method_28341(com.mojang.serialization.Codec<E> codec) |
private void |
setShuffledOrder(float random) |
String |
toString() |
private final T item
private final int weight
private double shuffledOrder
private Entry(T t, int int2)
private double getShuffledOrder()
private void setShuffledOrder(float random)
public T getElement()
public static <E> com.mojang.serialization.Codec<WeightedList.Entry<E>> method_28341(com.mojang.serialization.Codec<E> codec)