Uses of Enum Class
alexiil.mc.lib.attributes.fluid.amount.FluidAmount.FluidMergeRounding
Packages that use FluidAmount.FluidMergeRounding
-
Uses of FluidAmount.FluidMergeRounding in alexiil.mc.lib.attributes.fluid.amount
Fields in alexiil.mc.lib.attributes.fluid.amount declared as FluidAmount.FluidMergeRoundingModifier and TypeFieldDescriptionstatic final FluidAmount.FluidMergeRoundingFluidAmount.FluidMergeRounding.DEFAULTMethods in alexiil.mc.lib.attributes.fluid.amount that return FluidAmount.FluidMergeRoundingModifier 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.Methods in alexiil.mc.lib.attributes.fluid.amount with parameters of type FluidAmount.FluidMergeRoundingModifier and TypeMethodDescriptionstatic FluidAmount.FluidMergeResultFluidAmount.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.FluidMergeRoundingModifier and TypeMethodDescriptionvoidWeightedFluidVolume.addAmount(T value, FluidAmount amount, FluidAmount.FluidMergeRounding rounding) final booleanFluidVolume.merge(FluidVolume other, FluidAmount.FluidMergeRounding rounding, Simulation simulation) static FluidVolumeFluidVolume.merge(FluidVolume a, FluidVolume b, FluidAmount.FluidMergeRounding rounding) protected voidFluidVolume.merge0(FluidVolume other, FluidAmount.FluidMergeRounding rounding) Deprecated, for removal: This API element is subject to removal in a future version.static booleanFluidVolume.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 booleanFluidVolume.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.FluidMergeResultobject, which reduces the chance to make a mistake when merging the two amounts.