Class FluidAmount.FluidMergeResult
java.lang.Object
alexiil.mc.lib.attributes.fluid.amount.FluidAmount.FluidMergeResult
- Enclosing class:
- FluidAmount
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal FluidAmountThe leftover from the merging.final FluidAmountThe result of the merging.final BigFluidAmountThe amount that was lost (or gained, if this is positive) due to rounding. -
Constructor Summary
ConstructorsConstructorDescriptionFluidMergeResult(FluidAmount merged) Constructs a newFluidAmount.FluidMergeResultwith the givenmergedvalue, and with bothexcessandroundingErrorset 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.FluidMergeRoundingwasn'tFluidAmount.FluidMergeRounding.MAXIMUM_POSSIBLEorFluidAmount.FluidMergeRounding.FAILthen 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.FluidMergeResultwith the givenmergedvalue, and with bothexcessandroundingErrorset to zero. -
FluidMergeResult
-