Uses of Class
alexiil.mc.lib.attributes.fluid.amount.FluidAmount.FluidMergeRounding
Package | Description |
---|---|
alexiil.mc.lib.attributes.fluid.amount | |
alexiil.mc.lib.attributes.fluid.volume |
-
Uses of FluidAmount.FluidMergeRounding in alexiil.mc.lib.attributes.fluid.amount
Fields in alexiil.mc.lib.attributes.fluid.amount declared as FluidAmount.FluidMergeRounding Modifier and Type Field Description static FluidAmount.FluidMergeRounding
FluidAmount.FluidMergeRounding. DEFAULT
Methods in alexiil.mc.lib.attributes.fluid.amount that return FluidAmount.FluidMergeRounding Modifier and Type Method Description static FluidAmount.FluidMergeRounding
FluidAmount.FluidMergeRounding. fromRounding(java.math.RoundingMode rounding)
static FluidAmount.FluidMergeRounding
FluidAmount.FluidMergeRounding. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FluidAmount.FluidMergeRounding[]
FluidAmount.FluidMergeRounding. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in alexiil.mc.lib.attributes.fluid.amount with parameters of type FluidAmount.FluidMergeRounding Modifier and Type Method Description static FluidAmount.FluidMergeResult
FluidAmount. merge(FluidAmount target, FluidAmount toAdd, FluidAmount.FluidMergeRounding rounding)
-
Uses of FluidAmount.FluidMergeRounding in alexiil.mc.lib.attributes.fluid.volume
Methods in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidAmount.FluidMergeRounding Modifier and Type Method Description void
WeightedFluidVolume. addAmount(T value, FluidAmount amount, FluidAmount.FluidMergeRounding rounding)
boolean
FluidVolume. merge(FluidVolume other, FluidAmount.FluidMergeRounding rounding, Simulation simulation)
static FluidVolume
FluidVolume. merge(FluidVolume a, FluidVolume b, FluidAmount.FluidMergeRounding rounding)
protected void
FluidVolume. merge0(FluidVolume other, FluidAmount.FluidMergeRounding rounding)
Deprecated.becauseFluidVolume.mergeInternal(FluidVolume, FluidMergeResult)
allows every method to share the sameFluidAmount.FluidMergeResult
object, which reduces the chance to make a mistake when merging the two amounts.static boolean
FluidVolume. mergeInto(FluidVolume source, FluidVolume target, FluidAmount.FluidMergeRounding rounding)
Merges as much fluid as possible from the source into the target, leaving the result in thestatic boolean
FluidVolume. mergeInto(FluidVolume source, FluidVolume target, FluidAmount.FluidMergeRounding rounding, Simulation simulation)
Merges as much fluid as possible from the source into the target, leaving the result in the source.