java.lang.Object
nokunami.floral_warfare.common.gardenOps.WeightedRandomSelector<T>
public class WeightedRandomSelector<T>
extends Object
-
Constructor Summary
Constructors
-
Method Summary
void
add(T item,
double weight)
static void
next(net.minecraft.util.RandomSource random)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
WeightedRandomSelector
public WeightedRandomSelector()
-
Method Details
-
add
public void add(T item,
double weight)
-
-
next
public T next(net.minecraft.util.RandomSource random)
-
main
public static void main(String[] args)