net.minecraft.world.entity.ai.behavior

public class WeightedList<U>

atb
net.minecraft.world.entity.ai.behavior.WeightedList
net.minecraft.class_4131
net.minecraft.unmapped.C_bvkdjias
net.minecraft.util.collection.WeightedList
net.minecraft.util.WeightedList
net.minecraft.server.v1_16_R1.WeightedList

Field summary

Modifier and TypeField
protected final List<WeightedList$WeightedEntry<U>>
a
entries
field_18397
f_hgwqifuf
entries
field_220658_a
private final Random
b
random
field_18398
f_evggesuk
random
field_220659_b

Constructor summary

ModifierConstructor
public ()
private (List<WeightedList$WeightedEntry<U>> arg0)

Method summary

Modifier and TypeMethod
public static <U> com.mojang.serialization.Codec<WeightedList<U>>
a(com.mojang.serialization.Codec<U> arg0)
codec(com.mojang.serialization.Codec<U> arg0)
method_28338(com.mojang.serialization.Codec<U> arg0)
m_ovsaknci(com.mojang.serialization.Codec<U> arg0)
method_28338(com.mojang.serialization.Codec<U> arg0)
func_234002_a_(com.mojang.serialization.Codec<U> arg0)
public WeightedList<U>
a(U arg0, int arg1)
add(U arg0, int arg1)
method_19031(U arg0, int arg1)
m_jlywhwqn(U arg0, int arg1)
add(U item, int weight)
func_226313_a_(U arg0, int arg1)
public WeightedList<U>
a()
shuffle()
method_19029()
m_yuniliby()
shuffle()
func_226309_a_()
public WeightedList<U>
a(Random arg0)
shuffle(Random arg0)
method_23333(Random arg0)
m_kvlmxlxw(Random arg0)
shuffle(Random random)
func_226314_a_(Random arg0)
public boolean
b()
isEmpty()
method_28339()
m_txfpijht()
method_28339()
func_234005_b_()
public Stream<U>
c()
stream()
method_19032()
m_clhxtfmu()
stream()
func_220655_b()
public U
b(Random arg0)
getOne(Random arg0)
method_23337(Random arg0)
m_vkdfmjjf(Random arg0)
pickRandom(Random random)
func_226318_b_(Random arg0)