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 TypeClassDescriptionclass
A basic class implementing theWeighted
interface for ease of use.Methods in me.sciguymjm.uberenchant.api.utils.random with parameters of type WeightedModifier and TypeMethodDescriptionboolean
Add a new possible selection.boolean
Checks 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 TypeMethodDescriptionvoid
WeightedChance.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)
boolean
Remove possible selections based on a predicate.static <E> E
WeightedChance.select
(Collection<? extends Weighted<E>> collection) Static method to select a random weighted item from a collectionstatic <E> E
WeightedChance.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