Class WeightedList<T>
java.lang.Object
com.portingdeadmods.portingdeadlibs.utils.rng.WeightedList<T>
- Type Parameters:
T-
A list composed of
Allows weighted random selection of elements
WeightedElementAllows weighted random selection of elements
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(WeightedElement<? extends T> element) next()voidremove(int index) voidremove(WeightedElement<? extends T> element)
-
Constructor Details
-
WeightedList
public WeightedList()
-
-
Method Details
-
add
-
remove
-
remove
public void remove(int index) -
next
-