Class ShufflingList.WeightedEntry<T>
java.lang.Object
net.minecraft.world.entity.ai.behavior.ShufflingList.WeightedEntry<T>
- Enclosing class:
ShufflingList<U>
-
Field Summary
Modifier and TypeFieldDescription(package private) final T
private double
(package private) final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> com.mojang.serialization.Codec<ShufflingList.WeightedEntry<E>>
codec
(com.mojang.serialization.Codec<E> p_147944_) getData()
private double
int
(package private) void
setRandom
(float p_147942_) toString()
-
Field Details
-
data
-
weight
final int weight -
randWeight
private double randWeight
-
-
Constructor Details
-
WeightedEntry
WeightedEntry(T p_147938_, int p_147939_)
-
-
Method Details
-
getRandWeight
private double getRandWeight() -
setRandom
void setRandom(float p_147942_) -
getData
-
getWeight
public int getWeight() -
toString
-
codec
public static <E> com.mojang.serialization.Codec<ShufflingList.WeightedEntry<E>> codec(com.mojang.serialization.Codec<E> p_147944_)
-