Class VariableAmount.OptionalAmount

java.lang.Object
org.spongepowered.api.util.weighted.VariableAmount.OptionalAmount
All Implemented Interfaces:
DataSerializable, VariableAmount
Enclosing interface:
VariableAmount

public static class VariableAmount.OptionalAmount extends Object implements VariableAmount
Represents a variable amount which has a base and a chance of varying. This wraps another VariableAmount which it refers to if the chance succeeds.