Class FluidAmount.FluidMergeResult
java.lang.Object
alexiil.mc.lib.attributes.fluid.amount.FluidAmount.FluidMergeResult
- Enclosing class:
- FluidAmount
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionFluidMergeResult(FluidAmount merged)Constructs a newFluidAmount.FluidMergeResultwith the givenmergedvalue, and with bothexcessandroundingErrorset to zero.FluidMergeResult(FluidAmount merged, FluidAmount excess, BigFluidAmount error)
- 
Method Summary
- 
Field Details- 
mergedThe result of the merging.
- 
excessThe leftover from the merging. If theFluidAmount.FluidMergeRoundingwasn'tFluidAmount.FluidMergeRounding.MAXIMUM_POSSIBLEorFluidAmount.FluidMergeRounding.FAILthen this will be zero.
- 
roundingErrorThe amount that was lost (or gained, if this is positive) due to rounding.
 
- 
- 
Constructor Details- 
FluidMergeResultConstructs a newFluidAmount.FluidMergeResultwith the givenmergedvalue, and with bothexcessandroundingErrorset to zero.
- 
FluidMergeResult
 
-