net.minecraft.util.random

public class WeightedRandom

bpi
net.minecraft.util.random.WeightedRandom
net.minecraft.class_6011
net.minecraft.unmapped.C_nkerdfpt
net.minecraft.util.collection.Weighting
net.minecraft.util.collection.Weighting
net.minecraft.src.C_141040_
net.minecraft.util.random.WeightedEntry

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static int
a(List<? extends bph> arg0)
getTotalWeight(List<? extends WeightedEntry> arg0)
method_34984(List<? extends class_6008> arg0)
m_armnzakj(List<? extends C_pmqmzyaq> arg0)
getWeightSum(List<? extends Weighted> pool)
getWeightSum(List<? extends Weighted> pool)
m_146312_(List<? extends C_141037_> p_146313_)
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)
m_vmcjatrx(C_rlomrsco arg0, List<T> arg1, int arg2)
getRandom(Random random, List<T> pool, int totalWeight)
getRandomItem(RandomGenerator random, List<T> weightedObjects, int totalWeight)
m_216825_(C_212974_ p_216826_, List<T> p_216827_, int p_216828_)
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)
m_jwozlysa(List<T> arg0, int arg1)
getAt(List<T> pool, int totalWeight)
getAt(List<T> pool, int totalWeight)
m_146314_(List<T> p_146315_, int p_146316_)
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)
m_ycubmbam(C_rlomrsco arg0, List<T> arg1)
getRandom(Random random, List<T> pool)
getRandomItem(RandomGenerator random, List<T> weightedObjects)
m_216822_(C_212974_ p_216823_, List<T> p_216824_)