Class WeightedTable<T>

java.lang.Object
org.spongepowered.api.util.weighted.RandomObjectTable<T>
org.spongepowered.api.util.weighted.WeightedTable<T>
Type Parameters:
T - The entry type
All Implemented Interfaces:
Iterable<TableEntry<T>>, Collection<TableEntry<T>>
Direct Known Subclasses:
UnmodifiableWeightedTable

public class WeightedTable<T> extends RandomObjectTable<T>
A table of weighted entry, each entry is given a weight, the higher the weight the more likely the chance that the entry is chosen. Each roll will only return a single entries value.