Class FluidAmount.SafeAddResult
java.lang.Object
alexiil.mc.lib.attributes.fluid.amount.FluidAmount.SafeAddResult
- Enclosing class:
- FluidAmount
public static final class FluidAmount.SafeAddResult
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description BigFluidAmount
exactValue
The true value of the twoFluidAmount
's added together, equal toFluidAmount.bigAdd(FluidAmount)
.FluidAmount
roundedResult
-
Constructor Summary
Constructors Constructor Description SafeAddResult(BigFluidAmount exactValue, java.math.RoundingMode rounding)
SafeAddResult(FluidAmount exactValue)
SafeAddResult(FluidAmount roundedResult, BigFluidAmount exactValue)
-
Method Summary
Modifier and Type Method Description BigFluidAmount
getError()
java.lang.String
toString()
-
Field Details
-
roundedResult
-
exactValue
The true value of the twoFluidAmount
's added together, equal toFluidAmount.bigAdd(FluidAmount)
.
-
-
Constructor Details
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getError
- Returns:
- The difference between the
exactValue
and theroundedResult
. This will always be equal to theexactValue.sub(roundedResult)
-