| Package | Description |
|---|---|
| me.lucko.helper.random |
| Modifier and Type | Class and Description |
|---|---|
class |
WeightedObject<T>
Represents a
Weighted object. |
| Modifier and Type | Field and Description |
|---|---|
static Weigher<? super Weighted> |
Weighted.WEIGHER
An instance of
Weigher which uses the getWeight() method
to determine weight. |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Weighted> |
RandomSelector.weighted(Collection<E> elements)
Creates a weighted selector which picks elements according to the value of their
getWeight(). |
Copyright © 2022. All rights reserved.