T - The seed typepublic static final class SeededVariableAmount.WrappedVariableAmount<T> extends Object implements SeededVariableAmount<T>
SeededVariableAmount which wraps another VariableAmount
and defers all operations to the inner VariableAmount without the seed.SeededVariableAmount.WrappedVariableAmount<T>| Constructor and Description |
|---|
WrappedVariableAmount(VariableAmount inner)
Creates a new WrappedVariableAmount wrapping the given
VariableAmount. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getAmount(Random rand,
T seed)
Gets an instance of the variable amount depending on the given random
object and the seed object.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfixed, getFlooredAmount, wrappedpublic WrappedVariableAmount(VariableAmount inner)
VariableAmount.inner - The inner variable amountpublic double getAmount(Random rand, T seed)
SeededVariableAmountgetAmount in interface SeededVariableAmount<T>rand - The random objectseed - The seed object