Class SeededVariableAmount.WrappedVariableAmount<T>
java.lang.Object
org.spongepowered.api.util.weighted.SeededVariableAmount.WrappedVariableAmount<T>
- Type Parameters:
- T- The seed type
- All Implemented Interfaces:
- SeededVariableAmount<T>
- Enclosing interface:
- SeededVariableAmount<T>
public static final class SeededVariableAmount.WrappedVariableAmount<T>
extends Object
implements SeededVariableAmount<T>
A 
SeededVariableAmount which wraps another VariableAmount
 and defers all operations to the inner VariableAmount without the seed.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.api.util.weighted.SeededVariableAmountSeededVariableAmount.WrappedVariableAmount<T>
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.spongepowered.api.util.weighted.SeededVariableAmountflooredAmount
- 
Constructor Details- 
WrappedVariableAmountCreates a new WrappedVariableAmount wrapping the givenVariableAmount.- Parameters:
- inner- The inner variable amount
 
 
- 
- 
Method Details- 
amountDescription copied from interface:SeededVariableAmountGets an instance of the variable amount depending on the given random object and the seed object.- Specified by:
- amountin interface- SeededVariableAmount<T>
- Parameters:
- rand- The random object
- seed- The seed object
- Returns:
- The amount
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-