Class FluidAmount.FluidMergeResult
java.lang.Object
alexiil.mc.lib.attributes.fluid.amount.FluidAmount.FluidMergeResult
- Enclosing class:
- FluidAmount
public static final class FluidAmount.FluidMergeResult
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description FluidAmount
excess
The leftover from the merging.FluidAmount
merged
The result of the merging.BigFluidAmount
roundingError
The amount that was lost (or gained, if this is positive) due to rounding. -
Constructor Summary
Constructors Constructor Description FluidMergeResult(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
-