net.minecraft.util.random

public class WeightedRandomList<E extends WeightedEntry>

brv
net.minecraft.util.random.WeightedRandomList
net.minecraft.class_6012
net.minecraft.util.collection.Pool
net.minecraft.util.random.WeightedRandomList

Field summary

Modifier and TypeField
private final int
a
totalWeight
field_29934
totalWeight
private final com.google.common.collect.ImmutableList<E>
b
items
field_29935
entries

Constructor summary

ModifierConstructor
(List<? extends E> entries)

Method summary

Modifier and TypeMethod
public static <E extends WeightedEntry> WeightedRandomList<E>
c()
create()
method_34990()
empty()
public static <E extends WeightedEntry> WeightedRandomList<E>
a(E... arg0)
create(E... arg0)
method_34989(E... arg0)
of(E... entries)
public static <E extends WeightedEntry> WeightedRandomList<E>
a(List<E> arg0)
create(List<E> arg0)
method_34988(List<E> arg0)
of(List<E> entries)
public boolean
d()
isEmpty()
method_34993()
isEmpty()
public Optional<E>
b(bam arg0)
getRandom(RandomSource arg0)
method_34992(class_5819 arg0)
getOrEmpty(Random random)
public List<E>
e()
unwrap()
method_34994()
getEntries()
public static <E extends WeightedEntry> com.mojang.serialization.Codec<WeightedRandomList<E>>
c(com.mojang.serialization.Codec<E> arg0)
codec(com.mojang.serialization.Codec<E> arg0)
method_34991(com.mojang.serialization.Codec<E> arg0)
createCodec(com.mojang.serialization.Codec<E> entryCodec)