Package net.minecraft.util
Class WeightedList.Entry<T>
- java.lang.Object
-
- net.minecraft.util.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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E> com.mojang.serialization.Codec<WeightedList.Entry<E>>
codec(com.mojang.serialization.Codec<E> p_234008_0_)
T
getData()
private double
getRandWeight()
private void
setRandom(float p_220648_1_)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
codec
public static <E> com.mojang.serialization.Codec<WeightedList.Entry<E>> codec(com.mojang.serialization.Codec<E> p_234008_0_)
-
-