Interface Weighted<E>
- Type Parameters:
E
- The type of value
- All Known Implementing Classes:
WeightedEntry
public interface Weighted<E>
An interface for use in the
Used for custom classes that require a weighted chance for random selection
WeightedChance
classUsed for custom classes that require a weighted chance for random selection
-
Method Summary
-
Method Details
-
value
E value()Gets the value- Returns:
- The value
-
weight
double weight()Gets the weight- Returns:
- The weight
-