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