net.minecraft.util.random

public class SimpleWeightedRandomList<E>

extends WeightedRandomList<WeightedEntry$Wrapper<E>>

bpb
net.minecraft.util.random.SimpleWeightedRandomList
net.minecraft.class_6005
net.minecraft.unmapped.C_owfsqzhr
net.minecraft.util.collection.DataPool
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)
m_sepjgpgp(com.mojang.serialization.Codec<E> arg0)
createEmptyAllowedCodec(com.mojang.serialization.Codec<E> dataCodec)
wrapCodecToAllowEmpty(com.mojang.serialization.Codec<E> codec)
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)
m_clieysaa(com.mojang.serialization.Codec<E> arg0)
createCodec(com.mojang.serialization.Codec<E> dataCodec)
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()
m_apvcwapp()
builder()
builder()
m_146263_()
public static <E> SimpleWeightedRandomList<E>
b()
empty()
method_38062()
m_puzmqjws()
empty()
empty()
m_185864_()
public static <E> SimpleWeightedRandomList<E>
a(E arg0)
single(E arg0)
method_38061(E arg0)
m_ilrpuagm(E arg0)
of(E object)
of(E object)
m_185862_(E p_185863_)
public Optional<E>
a(ayw arg0)
getRandomValue(RandomSource arg0)
method_34973(class_5819 arg0)
m_fxqdoulv(C_rlomrsco arg0)
getDataOrEmpty(Random random)
getDataOrEmpty(RandomGenerator random)
m_216820_(C_212974_ arg0)