Uses of Enum Class
alexiil.mc.lib.attributes.fluid.amount.FluidAmount.FluidMergeRounding
-
Uses of FluidAmount.FluidMergeRounding in alexiil.mc.lib.attributes.fluid.amount
Modifier and TypeFieldDescriptionstatic final FluidAmount.FluidMergeRounding
FluidAmount.FluidMergeRounding.DEFAULT
Modifier and TypeMethodDescriptionFluidAmount.FluidMergeRounding.fromRounding
(RoundingMode rounding) Returns the enum constant of this class with the specified name.static FluidAmount.FluidMergeRounding[]
FluidAmount.FluidMergeRounding.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic FluidAmount.FluidMergeResult
FluidAmount.merge
(FluidAmount target, FluidAmount toAdd, FluidAmount.FluidMergeRounding rounding) -
Uses of FluidAmount.FluidMergeRounding in alexiil.mc.lib.attributes.fluid.volume
Modifier and TypeMethodDescriptionvoid
WeightedFluidVolume.addAmount
(T value, FluidAmount amount, FluidAmount.FluidMergeRounding rounding) final 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, for removal: This API element is subject to removal in a future version.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.
FluidVolume.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.