net.minecraft.world.entity.ai.behavior

public class ShufflingList<U>

implements Iterable<U>

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

Field summary

Modifier and TypeField
protected final List<ShufflingList$WeightedEntry<U>>
a
entries
field_30169
entries
private final RandomSource
b
random
field_30170
random

Constructor summary

ModifierConstructor
public ()
private (List<ShufflingList$WeightedEntry<U>> list)

Method summary

Modifier and TypeMethod
public static <U> com.mojang.serialization.Codec<ShufflingList<U>>
a(com.mojang.serialization.Codec<U> arg0)
codec(com.mojang.serialization.Codec<U> arg0)
method_35091(com.mojang.serialization.Codec<U> arg0)
createCodec(com.mojang.serialization.Codec<U> codec)
public ShufflingList<U>
a(U arg0, int arg1)
add(U arg0, int arg1)
method_35093(U arg0, int arg1)
add(U data, int weight)
public ShufflingList<U>
a()
shuffle()
method_35088()
shuffle()
public Stream<U>
b()
stream()
method_35094()
stream()
public Iterator<U>
iterator()
iterator()