net.minecraft.util.random

public class SimpleWeightedRandomList<E>

extends WeightedRandomList<WeightedEntry$Wrapper<E>>

brr
net.minecraft.util.random.SimpleWeightedRandomList
net.minecraft.class_6005
net.minecraft.util.collection.DataPool
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)
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)
public static <E> SimpleWeightedRandomList$Builder<E>
a()
builder()
method_34971()
builder()
public static <E> SimpleWeightedRandomList<E>
b()
empty()
method_38062()
empty()
public static <E> SimpleWeightedRandomList<E>
a(E arg0)
single(E arg0)
method_38061(E arg0)
of(E object)
public Optional<E>
a(bam arg0)
getRandomValue(RandomSource arg0)
method_34973(class_5819 arg0)
getDataOrEmpty(Random random)