Class WeightedSet<T>
java.lang.Object
com.pixelmonmod.pixelmon.api.util.WeightedSet<T>
Weighted set impl from Atlantis.
Waterdude gives himself permission to use this.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear()get()get(net.minecraft.util.RandomSource random) voidvoidvoiddoublegetChanceString(T element, int decimalPlaces) doublebooleanbooleanisEmpty()iterator()static <T> WeightedSet<T>newWeightedSet(Object... contents) intsize()stream()doubleweight()
-
Constructor Details
-
WeightedSet
protected WeightedSet()
-
-
Method Details
-
newWeightedSet
-
add
-
clear
-
get
-
get
-
get
-
getAndDo
-
getAndDo
-
getAndDo
-
getWeight
-
getChance
-
getChanceString
-
isEffectivelyEmpty
public boolean isEffectivelyEmpty() -
isEmpty
public boolean isEmpty() -
size
public int size() -
weight
public double weight() -
stream
-
iterator
-
spliterator
-