net.minecraft.util.random

public class SimpleWeightedRandomList<E>

extends WeightedRandomList<WeightedEntry$Wrapper<E>>

bch
net.minecraft.util.random.SimpleWeightedRandomList
net.minecraft.class_6005
net.minecraft.util.collection.DataPool
net.minecraft.src.C_141034_
net.minecraft.util.random.SimpleWeightedRandomList

Constructor summary

ModifierConstructor
(List<? extends WeightedEntry$Wrapper<E>> arg0)

Method summary

Modifier and TypeMethod
public static <E> com.mojang.serialization.Codec<SimpleWeightedRandomList<E>>
a(com.mojang.serialization.Codec<E> arg0)
wrappedCodecAllowingEmpty(com.mojang.serialization.Codec<E> arg0)
method_39521(com.mojang.serialization.Codec<E> arg0)
createEmptyAllowedCodec(com.mojang.serialization.Codec<E> dataCodec)
m_185860_(com.mojang.serialization.Codec<E> p_185861_)
public static <E> com.mojang.serialization.Codec<SimpleWeightedRandomList<E>>
b(com.mojang.serialization.Codec<E> arg0)
wrappedCodec(com.mojang.serialization.Codec<E> arg0)
method_34972(com.mojang.serialization.Codec<E> arg0)
createCodec(com.mojang.serialization.Codec<E> dataCodec)
m_146264_(com.mojang.serialization.Codec<E> p_146265_)
public static <E> SimpleWeightedRandomList$Builder<E>
a()
builder()
method_34971()
builder()
m_146263_()
public static <E> SimpleWeightedRandomList<E>
b()
empty()
method_38062()
empty()
m_185864_()
public static <E> SimpleWeightedRandomList<E>
a(E arg0)
single(E arg0)
method_38061(E arg0)
of(E object)
m_185862_(E p_185863_)
public Optional<E>
a(apf arg0)
getRandomValue(RandomSource arg0)
method_34973(class_5819 arg0)
getDataOrEmpty(Random random)
m_216820_(C_212974_ arg0)