Uses of Interface
me.sciguymjm.uberenchant.api.utils.random.Weighted
Packages that use Weighted
-
Uses of Weighted in me.sciguymjm.uberenchant.api.utils.random
Classes in me.sciguymjm.uberenchant.api.utils.random that implement WeightedModifier and TypeClassDescriptionclassA basic class implementing theWeightedinterface for ease of use.Methods in me.sciguymjm.uberenchant.api.utils.random with parameters of type WeightedModifier and TypeMethodDescriptionbooleanAdd a new possible selection.booleanChecks if this WeightedChance contains the specified entry or not.Method parameters in me.sciguymjm.uberenchant.api.utils.random with type arguments of type WeightedModifier and TypeMethodDescriptionvoidWeightedChance.addAll(Collection<? extends Weighted<E>> collection) Adds all the items in the specified collection to this WeightedChancestatic <E> WeightedChance<E>WeightedChance.fromCollection(Collection<? extends Weighted<E>> collection) Returns a new instance of a WeightedChance using specified collection
Same as usingWeightedChance(Collection)booleanRemove possible selections based on a predicate.static <E> EWeightedChance.select(Collection<? extends Weighted<E>> collection) Static method to select a random weighted item from a collectionstatic <E> EWeightedChance.select(Random random, Collection<? extends Weighted<E>> collection) Static method to select a random weighted item from a collection using a randomConstructor parameters in me.sciguymjm.uberenchant.api.utils.random with type arguments of type WeightedModifierConstructorDescriptionWeightedChance(Collection<? extends Weighted<E>> collection) Constructs a WeightedChance using the specified collection