public static class VariableAmount.BaseAndAddition extends Object implements VariableAmount
VariableAmount.BaseAndAddition, VariableAmount.BaseAndVariance, VariableAmount.Fixed, VariableAmount.OptionalAmount| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getAmount(Random rand)
Gets an instance of the variable amount depending on the given random
object.
|
int |
getContentVersion()
Gets the content version of this
DataSerializable. |
int |
hashCode() |
DataContainer |
toContainer()
Serializes this object into a comprehensible
DataContainer. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbaseWithOptionalAddition, baseWithOptionalAddition, baseWithOptionalVariance, baseWithOptionalVariance, baseWithRandomAddition, baseWithRandomAddition, baseWithVariance, baseWithVariance, fixed, getFlooredAmount, rangepublic double getAmount(Random rand)
VariableAmountgetAmount in interface VariableAmountrand - The random objectpublic DataContainer toContainer()
DataSerializableDataContainer.toContainer in interface DataSerializabletoContainer in interface VariableAmountpublic int getContentVersion()
DataSerializableDataSerializable. The version
may differ between instances of plugins and implementations such that
the DataView from DataSerializable.toContainer() may include different
information, or remove other information as they are no longer deemed
necessary. The version goes hand in hand with DataContentUpdater
as it is required when there exists any DataView of this
DataSerializable with an "older" version.getContentVersion in interface DataSerializablegetContentVersion in interface VariableAmount