T
- the type being wrappedpublic static interface ItemRandomizer.RandomItem<T>
Modifier and Type | Method and Description |
---|---|
void |
decrementWeight()
Decrements the weight value assigned to this random item
|
T |
getItem() |
int |
getWeight() |
void |
incrementWeight()
Increments the weight value assigned to this random item
|
boolean |
isEnabled() |
void |
setEnabled(boolean value) |
void |
setWeight(int weight) |
void incrementWeight()
void decrementWeight()
void setWeight(int weight)
weight
- the random weight assigned to this itemint getWeight()
boolean isEnabled()
void setEnabled(boolean value)
value
- true if this item should be enabledT getItem()