net.minecraft.util

public class WeightedPicker

oa
net.minecraft.class_845
net.minecraft.util.WeightedPicker
net.minecraft.util.WeightedRandom

Method summary

Modifier and TypeMethod
public static int
a(Collection<? extends oa$a> arg0)
method_2373(Collection<? extends class_845$class_846> arg0)
getTotalWeight(Collection<? extends WeightedPicker$Entry> entries)
getTotalWeight(Collection<? extends WeightedRandom$Item> collection)
public static <T extends WeightedPicker$Entry> T
a(Random arg0, Collection<T> arg1, int arg2)
method_10888(Random arg0, Collection<T> arg1, int arg2)
pick(Random random, Collection<T> entries, int totalWeight)
getRandomItem(Random random, Collection<T> collection, int totalWeight)
public static <T extends WeightedPicker$Entry> T
a(Collection<T> arg0, int arg1)
method_10886(Collection<T> arg0, int arg1)
pick(Collection<T> entries, int weight)
getRandomItem(Collection<T> collection, int weight)
public static <T extends WeightedPicker$Entry> T
a(Random arg0, Collection<T> arg1)
method_10887(Random arg0, Collection<T> arg1)
pick(Random random, Collection<T> entries)
getRandomItem(Random random, Collection<T> collection)