net.minecraft.util.collection

public class WeightedList<U>

implements Iterable<U>

net.minecraft.world.entity.ai.behavior.ShufflingList
net.minecraft.class_6032
net.minecraft.util.collection.WeightedList

Field summary

Modifier and TypeField
protected final List<WeightedList$Entry<U>>
entries
field_30169
entries
private final Random
random
field_30170
random

Constructor summary

ModifierConstructor
public ()
private (List<WeightedList$Entry<U>> list)

Method summary

Modifier and TypeMethod
public static <U> com.mojang.serialization.Codec<WeightedList<U>>
codec(com.mojang.serialization.Codec<U> elementCodec)
method_35091(com.mojang.serialization.Codec<U> arg0)
createCodec(com.mojang.serialization.Codec<U> codec)
public WeightedList<U>
add(U data, int weight)
method_35093(U arg0, int arg1)
add(U data, int weight)
public WeightedList<U>
shuffle()
method_35088()
shuffle()
public Stream<U>
stream()
method_35094()
stream()
public Iterator<U>
iterator()
private void
lambda$shuffle$0(ShufflingList$WeightedEntry arg0)
method_35089(class_6032$class_6033 arg0)
method_35089(WeightedList$Entry entry)
private static List
lambda$codec$0(ShufflingList arg0)
method_35090(class_6032 arg0)
method_35090(WeightedList weightedList)