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
-
Method Summary
Modifier and TypeMethodDescriptionclear()
get()
get
(net.minecraft.util.RandomSource random) void
void
void
double
getChanceString
(T element, int decimalPlaces) double
boolean
boolean
isEmpty()
iterator()
static <T> WeightedSet<T>
newWeightedSet
(Object... contents) int
size()
stream()
double
weight()
-
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
-