Class FluidAmount.FluidMergeResult
java.lang.Object
alexiil.mc.lib.attributes.fluid.amount.FluidAmount.FluidMergeResult
- Enclosing class:
- FluidAmount
-
Field Summary
Modifier and TypeFieldDescriptionThe leftover from the merging.The result of the merging.The amount that was lost (or gained, if this is positive) due to rounding. -
Constructor Summary
ConstructorDescriptionFluidMergeResult(FluidAmount merged)
Constructs a newFluidAmount.FluidMergeResult
with the givenmerged
value, and with bothexcess
androundingError
set to zero.FluidMergeResult(FluidAmount merged, FluidAmount excess, BigFluidAmount error)
-
Method Summary
-
Field Details
-
merged
The result of the merging. -
excess
The leftover from the merging. If theFluidAmount.FluidMergeRounding
wasn'tFluidAmount.FluidMergeRounding.MAXIMUM_POSSIBLE
orFluidAmount.FluidMergeRounding.FAIL
then this will be zero. -
roundingError
The amount that was lost (or gained, if this is positive) due to rounding.
-
-
Constructor Details
-
FluidMergeResult
Constructs a newFluidAmount.FluidMergeResult
with the givenmerged
value, and with bothexcess
androundingError
set to zero. -
FluidMergeResult
-