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 FluidAmountexcessThe leftover from the merging.FluidAmountmergedThe result of the merging.BigFluidAmountroundingErrorThe amount that was lost (or gained, if this is positive) due to rounding. - 
Constructor Summary
Constructors Constructor Description FluidMergeResult(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
 
 -