net.minecraft.util.random

public class WeightedRandom

bqw
net.minecraft.util.random.WeightedRandom
net.minecraft.class_6011
net.minecraft.util.collection.Weighting
net.minecraft.util.random.WeightedRandom2

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static int
a(List<? extends bqv> arg0)
getTotalWeight(List<? extends WeightedEntry> arg0)
method_34984(List<? extends class_6008> arg0)
getWeightSum(List<? extends Weighted> pool)
public static <T extends WeightedEntry> Optional<T>
a(azh arg0, List<T> arg1, int arg2)
getRandomItem(RandomSource arg0, List<T> arg1, int arg2)
method_34987(class_5819 arg0, List<T> arg1, int arg2)
getRandom(Random random, List<T> pool, int totalWeight)
public static <T extends WeightedEntry> Optional<T>
a(List<T> arg0, int arg1)
getWeightedItem(List<T> arg0, int arg1)
method_34985(List<T> arg0, int arg1)
getAt(List<T> pool, int totalWeight)
public static <T extends WeightedEntry> Optional<T>
a(azh arg0, List<T> arg1)
getRandomItem(RandomSource arg0, List<T> arg1)
method_34986(class_5819 arg0, List<T> arg1)
getRandom(Random random, List<T> pool)