net.minecraft.util.collection

public class Weighting

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

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static <T> int
a(List<T> o, ToIntFunction<T> o)
getTotalWeight(List<T> arg0, ToIntFunction<T> arg1)
method_34984(List<T> arg0, ToIntFunction<T> arg1)
getWeightSum(List<T> pool, ToIntFunction<T> weightGetter)
m_armnzakj(List<T> arg0, ToIntFunction<T> arg1)
getWeightSum(List<T> pool, ToIntFunction<T> arg1)
m_146312_(List<T> p_146313_, ToIntFunction<T> p_394201_)
public static <T> Optional<T>
a(bai o, List<T> o, int o, ToIntFunction<T> o)
getRandomItem(RandomSource arg0, List<T> arg1, int arg2, ToIntFunction<T> arg3)
method_34987(class_5819 arg0, List<T> arg1, int arg2, ToIntFunction<T> arg3)
getRandom(Random random, List<T> pool, int totalWeight, ToIntFunction<T> weightGetter)
m_lvjirkmu(C_rlomrsco arg0, List<T> arg1, int arg2, ToIntFunction<T> arg3)
m_lvjirkmu(RandomGenerator random, List<T> pool, int max, ToIntFunction<T> arg3)
m_216825_(C_212974_ p_216826_, List<T> p_216827_, int p_216828_, ToIntFunction<T> p_392166_)
public static <T> Optional<T>
a(List<T> o, int o, ToIntFunction<T> o)
getWeightedItem(List<T> arg0, int arg1, ToIntFunction<T> arg2)
method_34985(List<T> arg0, int arg1, ToIntFunction<T> arg2)
getAt(List<T> pool, int totalWeight, ToIntFunction<T> weightGetter)
m_jwozlysa(List<T> arg0, int arg1, ToIntFunction<T> arg2)
getAt(List<T> pool, int totalWeight, ToIntFunction<T> arg2)
m_146314_(List<T> p_146315_, int p_146316_, ToIntFunction<T> p_394629_)
public static <T> Optional<T>
a(bai o, List<T> o, ToIntFunction<T> o)
getRandomItem(RandomSource arg0, List<T> arg1, ToIntFunction<T> arg2)
method_34986(class_5819 arg0, List<T> arg1, ToIntFunction<T> arg2)
getRandom(Random random, List<T> pool, ToIntFunction<T> weightGetter)
m_yvfxnidr(C_rlomrsco arg0, List<T> arg1, ToIntFunction<T> arg2)
m_yvfxnidr(RandomGenerator random, List<T> arg1, ToIntFunction<T> arg2)
m_216822_(C_212974_ p_216823_, List<T> p_216824_, ToIntFunction<T> p_392808_)