Uses of Class
alexiil.mc.lib.attributes.fluid.amount.FluidAmount
| Package | Description |
|---|---|
| alexiil.mc.lib.attributes.fluid |
The base package for
fluid management. |
| alexiil.mc.lib.attributes.fluid.amount | |
| alexiil.mc.lib.attributes.fluid.impl | |
| alexiil.mc.lib.attributes.fluid.item | |
| alexiil.mc.lib.attributes.fluid.mixin.api | |
| alexiil.mc.lib.attributes.fluid.volume |
-
Uses of FluidAmount in alexiil.mc.lib.attributes.fluid
Fields in alexiil.mc.lib.attributes.fluid declared as FluidAmount Modifier and Type Field Description FluidAmountGroupedFluidInvView.FluidInvStatistic. amount_FThe total amount of the given filter.FluidAmountFluidContainerRegistry.FluidFillHandler. minimumFluidAmountGroupedFluidInvView.FluidInvStatistic. spaceAddable_FThe total amount of space that the given filter can be added to (where an inventory already contains a partial stack).FluidAmountGroupedFluidInvView.FluidInvStatistic. spaceTotal_FThe total amount of additional entries that could be added to by this filter.Methods in alexiil.mc.lib.attributes.fluid that return FluidAmount Modifier and Type Method Description FluidAmountFluidVolumeUtil.FluidTankInteraction. amountMoved_F()default FluidAmountGroupedFluidInvView. getAmount_F(FluidFilter filter)default FluidAmountGroupedFluidInvView. getAmount_F(FluidKey fluid)protected abstract FluidAmountFluidContainerRegistry.FluidFillHandler. getCapacity(FluidFilter filter)default FluidAmountGroupedFluidInvView. getCapacity_F(FluidKey fluid)default FluidAmountFixedFluidInvView. getMaxAmount_F(int tank)FluidAmountSingleFluidTankView. getMaxAmount_F()default FluidAmountFluidInsertable. getMinimumAcceptedAmount()FluidAmountSingleFluidTankView. getSpace()default FluidAmountGroupedFluidInvView. getSpace_F(FluidKey fluid)default FluidAmountGroupedFluidInvView. getTotalCapacity_F()Methods in alexiil.mc.lib.attributes.fluid with parameters of type FluidAmount Modifier and Type Method Description default FluidVolumeFluidExtractable. attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)default FluidVolumeFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeSingleFluidTank. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)static FluidVolumeUtil.FluidTransferResultFluidVolumeUtil. computeExtraction(FluidVolume inTank, FluidFilter filter, FluidAmount maxAmount)Computes the result ofFluidVolumeUtil.extractSingle(FixedFluidInv, int, FluidFilter, FluidVolume, FluidAmount, Simulation), but without actually modifying an inventory.static FluidVolumeUtil.FluidTransferResultFluidVolumeUtil. computeExtraction(FluidVolume inTank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount)Computes the result ofFluidVolumeUtil.extractSingle(FixedFluidInv, int, FluidFilter, FluidVolume, FluidAmount, Simulation), but without actually modifying an inventory.static FluidVolumeUtil.FluidTransferResultFluidVolumeUtil. computeInsertion(FluidVolume current, FluidAmount capacity, FluidVolume toInsert)Computes the result ofFluidVolumeUtil.insertSingle(FixedFluidInv, int, FluidVolume, Simulation), but without actually modifying an inventory.default FluidVolumeFluidExtractable. extract(FluidAmount maxAmount)Attempt to extract *any*FluidVolumefrom this.default FluidVolumeFluidExtractable. extract(FluidFilter filter, FluidAmount maxAmount)default FluidVolumeFluidExtractable. extract(FluidKey filter, FluidAmount maxAmount)default FluidVolumeFixedFluidInv. extractFluid(int tank, FluidFilter filter, FluidVolume mergeWith, FluidAmount maxAmount, Simulation simulation)Attempts to extract part of the fluid volume that is held in the given tank.static FluidVolumeFluidVolumeUtil. extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount, Simulation simulation)Deprecated.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player, FluidAmount maximum)This is the "interactCursorWithTank" variant that takes a singleFixedFluidInvand doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum)This is the "interactCursorWithTank" variant that takes a singleFixedFluidInv.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactCursorWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.server.network.ServerPlayerEntity player, FluidAmount maximum)This is the "interactCursorWithTank" variant that doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactCursorWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum)Attempts to either fill the insertable from the player'sPlayerInventory.getCursorStack(), or drain the extractable to the cursor stack.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactCursorWithTank(FluidTransferable inv, net.minecraft.server.network.ServerPlayerEntity player, FluidAmount maximum)This is the "interactCursorWithTank" variant that takes a singleFluidTransferableand doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactCursorWithTank(FluidTransferable inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum)This is the "interactCursorWithTank" variant that takes a singleFluidTransferable.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactHandWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidAmount maximum)This is the "interactHandWithTank" variant that takes a singleFixedFluidInvand doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactHandWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter, FluidAmount maximum)This is the "interactHandWithTank" variant that takes a singleFixedFluidInv.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactHandWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidAmount maximum)This is the "interactHandWithTank" variant that doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactHandWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter, FluidAmount maximum)Attempts to either fill the insertable from the player'shand, or drain the extractable to the hand.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactHandWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidAmount maximum)This is the "interactHandWithTank" variant that takes a singleFluidTransferableand doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactHandWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter, FluidAmount maximum)This is the "interactHandWithTank" variant that takes a singleFluidTransferable.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidAmount maximum)This is the "interactItemWithTank" variant that uses a singleFixedFluidInvfor the insertable/extractable tanks, and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)This is the "interactItemWithTank" variant that uses a singleFixedFluidInvfor the insertable/extractable tanks.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidAmount maximum)This is the "interactItemWithTank" variant that doesn't filter what is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)Attempts to either fill the insertable from the provided stack reference, or drain the extractable to the provided stack.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidAmount maximum)This is the "interactItemWithTank" variant that uses a singleFluidTransferablefor the insertable/extractable tanks, and doesn't filter what is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)This is the "interactItemWithTank" variant that uses a singleFluidTransferablefor the insertable/extractable tanks.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidAmount maximum)This is the "interactWithTank" variant that takes a singleFixedFluidInv, and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)This is the "interactWithTank" variant that takes a singleFixedFluidInv.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidAmount maximum)This is the "interactWithTank" variant that doesn't limit the fluid moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)Attempts to either fill the insertable from the provided stack reference, or drain the extractable to the provided stack.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidAmount maximum)This is the "interactWithTank" variant that takes a singleFluidTransferable, and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. interactWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)This is the "interactWithTank" variant that takes a singleFluidTransferable.LimitedFixedFluidInv.FluidTankLimitRuleLimitedFixedFluidInv.FluidTankLimitRule. limitInsertionAmount(FluidAmount max)Limits the amount of fluid that can be inserted (in total) to the given count.LimitedGroupedFluidInv.FluidLimitRuleLimitedGroupedFluidInv.FluidLimitRule. limitInsertionAmount(FluidAmount max)Limits the amount of fluid that can be inserted (in total) to the given amount.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidAmount maximum)Attempts to move up to the given amount of fluid from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidAmount maximum, Simulation simulation)Attempts to move up to the given amount of fluid from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum)Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum, Simulation simulation)Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.voidFluidInvAmountChangeListener_F. onChange(GroupedFluidInvView inv, FluidKey fluid, FluidAmount previous, FluidAmount current)static voidFluidContainerRegistry. registerFillHandler(net.minecraft.item.Item empty, FluidAmount minimum, FluidAmount capacity, FluidContainerRegistry.FluidFillFunction fn)static voidFluidContainerRegistry. registerFillHandler(net.minecraft.item.Item empty, FluidFilter fluids, boolean isFilterSpecific, FluidAmount minimum, FluidAmount capacity, FluidContainerRegistry.FluidFillFunction fn)static voidFluidContainerRegistry. registerFillHandler(net.minecraft.item.Item empty, FluidKey fluid, FluidAmount minimum, FluidAmount capacity, FluidContainerRegistry.FluidFillFunction fn)Registers a custom fill handler for the given empty item, which always creates filledItemStacks with differentItems to the original.LimitedFixedFluidInv.FluidTankLimitRuleLimitedFixedFluidInv.FluidTankLimitRule. setMinimum(FluidAmount min)Limits the amount of fluid that can be extracted to ensure that this tank cannot have an amount that goes below the given value.LimitedGroupedFluidInv.FluidLimitRuleLimitedGroupedFluidInv.FluidLimitRule. setMinimum(FluidAmount min)Limits the amount of fluid that can be extracted to ensure that the inventory cannot have an amount below the given value.Constructors in alexiil.mc.lib.attributes.fluid with parameters of type FluidAmount Constructor Description FluidFillHandler(FluidAmount minimum)FluidInvStatistic(FluidFilter filter, FluidAmount amount, FluidAmount spaceAddable, FluidAmount spaceTotal) -
Uses of FluidAmount in alexiil.mc.lib.attributes.fluid.amount
Fields in alexiil.mc.lib.attributes.fluid.amount declared as FluidAmount Modifier and Type Field Description static FluidAmountFluidAmount. A_MILLIONA very large amount of fluid - one million buckets.static FluidAmountFluidAmount. ABSOLUTE_MAXIMUMThe maximum possible value that a validFluidAmountcan hold.static FluidAmountFluidAmount. ABSOLUTE_MINIMUMThe minimum possible value that a validFluidAmountcan hold.static FluidAmountFluidAmount. BOTTLEOne bottle is equal to a third of a bucket.static FluidAmountFluidAmount. BUCKETOne bucket of fluid - which is alwaysONE.FluidAmountFluidAmount.FluidMergeResult. excessThe leftover from the merging.static FluidAmountFluidAmount. MAX_BUCKETSLong.MAX_VALUEof buckets.static FluidAmountFluidAmount. MAX_VALUEDeprecated.AsMAX_BUCKETSshould generally be used instead, however if you really need the absolute value then you can useABSOLUTE_MAXIMUM.FluidAmountFluidAmount.FluidMergeResult. mergedThe result of the merging.static FluidAmountFluidAmount. MIN_BUCKETSLong.MIN_VALUEof buckets.static FluidAmountFluidAmount. MIN_VALUEDeprecated.AsMIN_BUCKETSshould generally be used instead, however if you really need the absolute minimum value then you can useABSOLUTE_MINIMUM.static FluidAmountFluidAmount. NEGATIVE_ONEstatic FluidAmountFluidAmount. ONEFluidAmountFluidAmount.SafeAddResult. roundedResultstatic FluidAmountFluidAmount. ZEROMethods in alexiil.mc.lib.attributes.fluid.amount that return FluidAmount Modifier and Type Method Description FluidAmountFluidAmount. add(long by)Adds the given long value to thisFluidAmount, without performing any checking or saturation.FluidAmountFluidAmount. add(FluidAmount other)The recommended method for adding twoFluidAmount's together if you don't want to think about inexact answers.FluidAmountBigFluidAmount. asLongIntExact()FluidAmountFluidAmount. asLongIntExact()FluidAmountBigFluidAmount. asLongIntRounded()Converts this into a normal long-basedFluidAmount.FluidAmountBigFluidAmount. asLongIntRounded(java.math.RoundingMode rounding)Converts this into a normal long-basedFluidAmount.FluidAmountBigFluidAmount. asLongIntSaturated()Converts this into a normal long-basedFluidAmount.FluidAmountFluidAmount. checkedAdd(FluidAmount by)Directly adds the givenFluidAmountto this one.FluidAmountFluidAmount. checkedDiv(long by)FluidAmountFluidAmount. checkedDiv(FluidAmount by)FluidAmountFluidAmount. checkedMul(long by)FluidAmountFluidAmount. checkedMul(FluidAmount by)FluidAmountFluidAmount. checkedSub(FluidAmount by)FluidAmountFluidAmount. div(long other)The recommended method for dividing this by aLongif you don't want to think about inexact answers.FluidAmountFluidAmount. div(FluidAmount other)The recommended method for dividing this by anotherFluidAmountif you don't want to think about inexact answers.static FluidAmountFluidAmount. fromDouble(double value)Deprecated.Useparse(String)instead.static FluidAmountFluidAmount. fromMcBuffer(net.minecraft.network.PacketByteBuf buffer)static FluidAmountFluidAmount. fromNbt(net.minecraft.nbt.CompoundTag tag)static FluidAmountFluidAmount. fromStdBuffer(io.netty.buffer.ByteBuf buffer)FluidAmountFluidAmount. getDivisor()FluidAmountFluidAmount. lcm(FluidAmount other)FluidAmountFluidAmount. mul(long by)The recommended method for multiplying this by a long if you don't want to think about inexact answers.FluidAmountFluidAmount. mul(FluidAmount by)The recommended method for multiplying twoFluidAmount's together if you don't want to think about inexact answers.FluidAmountFluidAmount. negate()static FluidAmountFluidAmount. of(long numerator, long denominator)Creates a newFluidAmountwith the given values.static FluidAmountFluidAmount. of(long whole, long numerator, long denominator)Creates a newFluidAmountwith the given values.static FluidAmountFluidAmount. of1620(int amount)Legacy conversion method for creating a fraction with the given amount as it's numerator, and 1620 as it's denominatorstatic FluidAmountFluidAmount. ofWhole(long whole)Creates a newFluidAmountwith the given values.static FluidAmountFluidAmount. parse(java.lang.String text)Attempts to parse the given text as aFluidAmount.FluidAmountFluidAmount. reciprocal()FluidAmountFluidAmount. roundedAdd(FluidAmount other)FluidAmountFluidAmount. roundedAdd(FluidAmount other, java.math.RoundingMode rounding)FluidAmountFluidAmount. roundedDiv(long by)FluidAmountFluidAmount. roundedDiv(long by, java.math.RoundingMode rounding)FluidAmountFluidAmount. roundedDiv(FluidAmount by)FluidAmountFluidAmount. roundedDiv(FluidAmount by, java.math.RoundingMode rounding)FluidAmountFluidAmount. roundedMul(long by)FluidAmountFluidAmount. roundedMul(long by, java.math.RoundingMode rounding)FluidAmountFluidAmount. roundedMul(FluidAmount by)FluidAmountFluidAmount. roundedMul(FluidAmount by, java.math.RoundingMode rounding)FluidAmountFluidAmount. roundedSub(FluidAmount by)FluidAmountFluidAmount. roundedSub(FluidAmount by, java.math.RoundingMode rounding)FluidAmountFluidAmount. saturatedAdd(FluidAmount by)Similar tocheckedAdd(FluidAmount), but returns eitherMAX_BUCKETSorMIN_BUCKETSinstead of throwing an exception.FluidAmountFluidAmount. saturatedDiv(long by)FluidAmountFluidAmount. saturatedDiv(FluidAmount by)FluidAmountFluidAmount. saturatedMul(long by)FluidAmountFluidAmount. saturatedMul(FluidAmount by)FluidAmountFluidAmount. saturatedSub(FluidAmount by)FluidAmountFluidAmount. sub(long by)FluidAmountFluidAmount. sub(FluidAmount other)The recommended method for subtracting anotherFluidAmountfrom this if you don't want to think about inexact answers.Methods in alexiil.mc.lib.attributes.fluid.amount with parameters of type FluidAmount Modifier and Type Method Description BigFluidAmountBigFluidAmount. add(FluidAmount by)FluidAmountFluidAmount. add(FluidAmount other)The recommended method for adding twoFluidAmount's together if you don't want to think about inexact answers.BigFluidAmountFluidAmount. bigAdd(FluidAmount by)Directly adds the givenFluidAmountto this one, returning the result as aBigFluidAmount.BigFluidAmountFluidAmount. bigDiv(FluidAmount by)BigFluidAmountFluidAmount. bigMul(FluidAmount by)FluidAmountFluidAmount. checkedAdd(FluidAmount by)Directly adds the givenFluidAmountto this one.FluidAmountFluidAmount. checkedDiv(FluidAmount by)FluidAmountFluidAmount. checkedMul(FluidAmount by)FluidAmountFluidAmount. checkedSub(FluidAmount by)intFluidAmount. compareTo(FluidAmount o)BigFluidAmountBigFluidAmount. div(FluidAmount by)FluidAmountFluidAmount. div(FluidAmount other)The recommended method for dividing this by anotherFluidAmountif you don't want to think about inexact answers.booleanFluidAmount. equals(FluidAmount other)longFluidAmount. getCountOf(FluidAmount by)FluidAmountFluidAmount. lcm(FluidAmount other)static FluidAmount.FluidMergeResultFluidAmount. merge(FluidAmount target, FluidAmount toAdd)static FluidAmount.FluidMergeResultFluidAmount. merge(FluidAmount target, FluidAmount toAdd, long denominatorTarget, long denominatorAdd)static FluidAmount.FluidMergeResultFluidAmount. merge(FluidAmount target, FluidAmount toAdd, FluidAmount.FluidMergeRounding rounding)BigFluidAmountBigFluidAmount. mul(FluidAmount by)FluidAmountFluidAmount. mul(FluidAmount by)The recommended method for multiplying twoFluidAmount's together if you don't want to think about inexact answers.FluidAmountFluidAmount. roundedAdd(FluidAmount other)FluidAmountFluidAmount. roundedAdd(FluidAmount other, java.math.RoundingMode rounding)FluidAmountFluidAmount. roundedDiv(FluidAmount by)FluidAmountFluidAmount. roundedDiv(FluidAmount by, java.math.RoundingMode rounding)FluidAmountFluidAmount. roundedMul(FluidAmount by)FluidAmountFluidAmount. roundedMul(FluidAmount by, java.math.RoundingMode rounding)FluidAmountFluidAmount. roundedSub(FluidAmount by)FluidAmountFluidAmount. roundedSub(FluidAmount by, java.math.RoundingMode rounding)FluidAmount.SafeAddResultFluidAmount. safeAdd(FluidAmount other)Safely adds the givenFluidAmountto this one, returning the merged result.FluidAmount.SafeAddResultFluidAmount. safeAdd(FluidAmount other, java.math.RoundingMode rounding)Safely adds the givenFluidAmountto this one, returning the merged result.FluidAmount.SafeAddResultFluidAmount. safeSub(FluidAmount by)FluidAmount.SafeAddResultFluidAmount. safeSub(FluidAmount by, java.math.RoundingMode rounding)FluidAmountFluidAmount. saturatedAdd(FluidAmount by)Similar tocheckedAdd(FluidAmount), but returns eitherMAX_BUCKETSorMIN_BUCKETSinstead of throwing an exception.FluidAmountFluidAmount. saturatedDiv(FluidAmount by)FluidAmountFluidAmount. saturatedMul(FluidAmount by)FluidAmountFluidAmount. saturatedSub(FluidAmount by)BigFluidAmountBigFluidAmount. sub(FluidAmount by)FluidAmountFluidAmount. sub(FluidAmount other)The recommended method for subtracting anotherFluidAmountfrom this if you don't want to think about inexact answers.Constructors in alexiil.mc.lib.attributes.fluid.amount with parameters of type FluidAmount Constructor Description BigFluidAmount(FluidAmount from)FluidMergeResult(FluidAmount merged)Constructs a newFluidAmount.FluidMergeResultwith the givenFluidAmount.FluidMergeResult.mergedvalue, and with bothFluidAmount.FluidMergeResult.excessandFluidAmount.FluidMergeResult.roundingErrorset to zero.FluidMergeResult(FluidAmount merged, FluidAmount excess, BigFluidAmount error)SafeAddResult(FluidAmount exactValue)SafeAddResult(FluidAmount roundedResult, BigFluidAmount exactValue) -
Uses of FluidAmount in alexiil.mc.lib.attributes.fluid.impl
Fields in alexiil.mc.lib.attributes.fluid.impl declared as FluidAmount Modifier and Type Field Description protected FluidAmount[]SimpleLimitedFixedFluidInv. maxInsertionAmountsArray of maximum amounts that can be inserted up to.protected FluidAmount[]SimpleLimitedFixedFluidInv. minimumAmountsArray of minimum amounts that can be extracted down to.FluidAmountSimpleFixedFluidInv. tankCapacity_FMethods in alexiil.mc.lib.attributes.fluid.impl that return FluidAmount Modifier and Type Method Description FluidAmountAbstractPartialFixedFluidInvView. getMaxAmount_F(int tank)FluidAmountCombinedFixedFluidInvView. getMaxAmount_F(int tank)FluidAmountDelegatingFixedFluidInv. getMaxAmount_F(int tank)FluidAmountSimpleFixedFluidInv. getMaxAmount_F(int tank)FluidAmountSimpleLimitedFixedFluidInv. getMaxAmount_F(int tank)FluidAmountCombinedFluidInsertable. getMinimumAcceptedAmount()FluidAmountFilteredFluidInsertable. getMinimumAcceptedAmount()FluidAmountFilteredFluidTransferable. getMinimumAcceptedAmount()FluidAmountSimpleFixedFluidInv. getMinimumAcceptedAmount()FluidAmountSimpleFixedFluidInvInsertable. getMinimumAcceptedAmount()Deprecated.FluidAmountCombinedGroupedFluidInvView. getTotalCapacity_F()FluidAmountDelegatingGroupedFluidInv. getTotalCapacity_F()FluidAmountEmptyGroupedFluidInv. getTotalCapacity_F()FluidAmountGroupedFluidInvViewFixedWrapper. getTotalCapacity_F()Methods in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidAmount Modifier and Type Method Description FluidVolumeDelegatingGroupedFluidInv. attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)FluidVolumeSimpleFixedFluidInv. attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)FluidVolumeCombinedFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeCombinedGroupedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeDelegatingGroupedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeEmptyFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeFilteredFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeFilteredFluidTransferable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeGroupedFluidInvFixedWrapper. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeSimpleFixedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeSimpleFixedFluidInvExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)Deprecated.FluidVolumeSimpleLimitedGroupedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)Constructors in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidAmount Constructor Description JumboFixedFluidInv(int invSize, FluidAmount tankCapacity)SimpleFixedFluidInv(int invSize, FluidAmount tankCapacity) -
Uses of FluidAmount in alexiil.mc.lib.attributes.fluid.item
Fields in alexiil.mc.lib.attributes.fluid.item declared as FluidAmount Modifier and Type Field Description FluidAmountItemBasedSingleFluidInv.HeldFluidInfo. capacityMethods in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidAmount Modifier and Type Method Description FluidVolumeItemBasedSingleFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)Constructors in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidAmount Constructor Description HeldFluidInfo(FluidVolume fluid, FluidAmount capacity) -
Uses of FluidAmount in alexiil.mc.lib.attributes.fluid.mixin.api
Methods in alexiil.mc.lib.attributes.fluid.mixin.api that return FluidAmount Modifier and Type Method Description FluidAmountIBucketItem. libblockattributes__getFluidVolumeAmount() -
Uses of FluidAmount in alexiil.mc.lib.attributes.fluid.volume
Fields in alexiil.mc.lib.attributes.fluid.volume declared as FluidAmount Modifier and Type Field Description FluidAmountFluidKey. cohesionHow much this fluid will spread itself around.static FluidAmountFluidKey. DEFAULT_GAS_COHESIONThe defaultFluidKey.cohesionthat gases use: 1/24static FluidAmountFluidKey. DEFAULT_GAS_DENSITYThe defaultFluidKey.density(andFluidKey.thermalCapacity) that gases use: 1/160.static FluidAmountFluidKey. DEFAULT_GAS_VISCOSITYThe defaultFluidKey.viscositythat gases use: 1/24.FluidAmountFluidKey. densityHow dense this fluid is.FluidAmountFluidKey. netherCohesionSpecial-case property for fluids to have differentFluidKey.cohesionvalues in the nether.FluidAmountFluidKey. netherViscositySpecial-case property for fluids to have differentFluidKey.viscosityvalues in the nether.FluidAmountFluidKey. thermalCapacityHow much energy is required to make this fluid change it's temperature.FluidAmountFluidKey. viscosityHow much this fluid resists attempts to move it around.Methods in alexiil.mc.lib.attributes.fluid.volume that return FluidAmount Modifier and Type Method Description FluidAmountFluidVolume. amount()An alternate name forFluidVolume.getAmount_F().FluidAmountFluidVolume. getAmount_F()Note: due to LBA's backwards compatibility with when it used to use a 1620-based fixed fraction integers this cannot use the name "getAmount", so instead this has "_F" added to the end.protected FluidAmountFluidVolume. getRawAmount_F()static FluidAmountFluidVolume. parseAmount(com.google.gson.JsonElement elem)Methods in alexiil.mc.lib.attributes.fluid.volume that return types with arguments of type FluidAmount Modifier and Type Method Description java.util.Map<T,FluidAmount>WeightedFluidVolume. getValues()Methods in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidAmount Modifier and Type Method Description voidWeightedFluidVolume. addAmount(T value, FluidAmount amount)voidWeightedFluidVolume. addAmount(T value, FluidAmount amount, FluidAmount.FluidMergeRounding rounding)voidFluidVolume. addFullTooltip(FluidAmount capacity, FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)Adds the complete tooltip for thisFluidVolumeto the given tooltip.voidFluidVolume. addFullTooltip(FluidAmount capacity, java.util.List<net.minecraft.text.Text> tooltip)Adds the complete tooltip for thisFluidVolumeto the given tooltip.voidFluidVolume. addTooltipNameAmount(FluidAmount capacity, FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)Adds the name and amount to the given tooltip.protected ColouredFluidVolumeColouredFluidKey. createFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount)protected FluidVolumeFluidKey. createFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount)Creates a newFluidVolumeand reads it from the buffer withFluidVolume.fromMcBufferInternal(PacketByteBuf).net.minecraft.text.TextFluidUnit. getAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getAmount(FluidAmount amount)net.minecraft.text.TextFluidUnitBase. getAmount(FluidAmount amount, boolean forceSingular)net.minecraft.text.TextFluidUnitBase. getAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName)abstract net.minecraft.text.TextFluidUnitBase. getAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getAmount(FluidAmount amount, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getAmount(FluidAmount amount, net.minecraft.text.Text fluidName)net.minecraft.text.TextFluidUnitBase. getAmount(FluidAmount amount, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitSet. getAmount(FluidAmount amount, boolean forceLastSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnit. getEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getEmptyTank(FluidAmount capacity)abstract net.minecraft.text.TextFluidUnitBase. getEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitSet. getEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnit. getFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getFlowRate(FluidAmount amountPerTick)net.minecraft.text.TextFluidUnitBase. getFlowRate(FluidAmount amountPerTick, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName)abstract net.minecraft.text.TextFluidUnitBase. getFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitSet. getFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnit. getFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getFullTank(FluidAmount capacity)net.minecraft.text.TextFluidUnitBase. getFullTank(FluidAmount capacity, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName)abstract net.minecraft.text.TextFluidUnitBase. getFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitSet. getFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.util.List<net.minecraft.text.Text>FluidVolume. getFullTooltip(FluidAmount capacity)Simple getter for retrieving the entire fluid tooltip, instead of adding it to an already-existing list.java.util.List<net.minecraft.text.Text>FluidVolume. getFullTooltip(FluidAmount capacity, FluidTooltipContext context)Simple getter for retrieving the entire fluid tooltip, instead of adding it to an already-existing list.net.minecraft.text.TextFluidUnit. getPartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getPartialTank(FluidAmount amount, FluidAmount capacity)net.minecraft.text.TextFluidUnitBase. getPartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getPartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)abstract net.minecraft.text.TextFluidUnitBase. getPartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitSet. getPartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getTank(FluidAmount amount, FluidAmount capacity)net.minecraft.text.TextFluidUnitBase. getTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)net.minecraft.text.TextFluidUnitBase. getTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)net.minecraft.text.TextFluidUnitBase. getTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnit. localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeAmount(FluidAmount amount)java.lang.StringFluidUnitBase. localizeAmount(FluidAmount amount, boolean forceSingular)java.lang.StringFluidUnitBase. localizeAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName)abstract java.lang.StringFluidUnitBase. localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeAmount(FluidAmount amount, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeAmount(FluidAmount amount, net.minecraft.text.Text fluidName)java.lang.StringFluidUnitBase. localizeAmount(FluidAmount amount, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnitSet. localizeAmount(FluidAmount amount, boolean forceLastSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnit. localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeEmptyTank(FluidAmount capacity)abstract java.lang.StringFluidUnitBase. localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)java.lang.StringFluidUnitSet. localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)java.lang.StringFluidUnit. localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeFlowRate(FluidAmount amountPerTick)java.lang.StringFluidUnitBase. localizeFlowRate(FluidAmount amountPerTick, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName)abstract java.lang.StringFluidUnitBase. localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnitSet. localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnit. localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeFullTank(FluidAmount capacity)java.lang.StringFluidUnitBase. localizeFullTank(FluidAmount capacity, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName)abstract java.lang.StringFluidUnitBase. localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnitSet. localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidVolume. localizeInTank(FluidAmount capacity)java.lang.StringFluidVolume. localizeInTank(FluidAmount capacity, FluidTooltipContext ctx)java.lang.StringFluidUnit. localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizePartialTank(FluidAmount amount, FluidAmount capacity)java.lang.StringFluidUnitBase. localizePartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)abstract java.lang.StringFluidUnitBase. localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnitSet. localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeTank(FluidAmount amount, FluidAmount capacity)java.lang.StringFluidUnitBase. localizeTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)java.lang.StringFluidUnitBase. localizeTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)java.lang.StringFluidUnitBase. localizeTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)protected abstract TFluidProperty. merge(FluidVolume volumeA, FluidVolume volumeB, FluidAmount amount, T valueA, T valueB)Merges two values together, using the twoFluidVolumes for context.protected voidFluidVolume. setAmount(FluidAmount newAmount)Protected to allow the implementation ofFluidVolume.split(FluidAmount)andFluidVolume.merge0(FluidVolume, FluidMergeRounding)to set the amount.FluidKey.FluidKeyBuilderFluidKey.FluidKeyBuilder. setCohesion(FluidAmount to)Sets theFluidKey.cohesionproperty to the givenFluidAmount, or null to use the default value.FluidKey.FluidKeyBuilderFluidKey.FluidKeyBuilder. setDensity(FluidAmount to)Sets theFluidKey.densityproperty to the givenFluidAmount, or null to use the default value.FluidKey.FluidKeyBuilderFluidKey.FluidKeyBuilder. setNetherCohesion(FluidAmount to)Sets theFluidKey.netherCohesionproperty to the givenFluidAmount, or null to use the default value.FluidKey.FluidKeyBuilderFluidKey.FluidKeyBuilder. setNetherViscosity(FluidAmount to)Sets theFluidKey.netherViscosityproperty to the givenFluidAmount, or null to use the default value.FluidKey.FluidKeyBuilderFluidKey.FluidKeyBuilder. setThermalCapacity(FluidAmount to)Sets theFluidKey.thermalCapacityproperty to the givenFluidAmount, or null to use the default value.FluidKey.FluidKeyBuilderFluidKey.FluidKeyBuilder. setViscosity(FluidAmount to)Sets theFluidKey.viscosityproperty to the givenFluidAmount, or null to use the default value.FluidVolumeFluidVolume. split(FluidAmount toRemove)Splits off the given amount of fluid and returns it, reducing this amount as well.
If the given amount is greater than this then the returnedFluidVolumewill have an amount equal to this amount, and not the amount given.FluidVolumeFluidVolume. split(FluidAmount toRemove, java.math.RoundingMode rounding)Splits off the given amount of fluid and returns it, reducing this amount as well.
If the given amount is greater than this then the returnedFluidVolumewill have an amount equal to this amount, and not the amount given.protected FluidVolumeColouredFluidVolume. split0(FluidAmount toTake, java.math.RoundingMode rounding)protected FluidVolumeFluidVolume. split0(FluidAmount toTake, java.math.RoundingMode rounding)protected WeightedFluidVolume<T>WeightedFluidVolume. split0(FluidAmount toTake, java.math.RoundingMode rounding)BiomeSourcedFluidVolumeBiomeSourcedFluidKey. withAmount(FluidAmount amount)BiomeSourcedFluidVolumeBiomeSourcedFluidKey. withAmount(net.minecraft.world.biome.Biome source, FluidAmount amount)ColouredFluidVolumeColouredFluidKey. withAmount(FluidAmount amount)FluidVolumeFluidKey. withAmount(FluidAmount amount)FluidVolumeFluidVolume. withAmount(FluidAmount newAmount)Creates a copy of this fluid with the given amount.NormalFluidVolumeNormalFluidKey. withAmount(FluidAmount amount)Deprecated.PotionFluidVolumePotionFluidKey. withAmount(FluidAmount amount)FluidVolumeSimpleFluidKey. withAmount(FluidAmount amount)WeightedFluidVolume<T>WeightedFluidKey. withAmount(FluidAmount amount)abstract WeightedFluidVolume<T>WeightedFluidKey. withAmount(T value, FluidAmount amount)Method parameters in alexiil.mc.lib.attributes.fluid.volume with type arguments of type FluidAmount Modifier and Type Method Description voidWeightedFluidVolume. addAmounts(java.util.Map<T,FluidAmount> sources)protected voidWeightedFluidVolume. readValuesFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, java.util.Map<T,FluidAmount> map)protected voidWeightedFluidVolume. writeValuesToMcBuffer(net.minecraft.network.PacketByteBuf buffer, java.util.Map<T,FluidAmount> map)Constructors in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidAmount Constructor Description BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, FluidAmount amount)BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.world.biome.Biome source, FluidAmount amount)ColouredFluidVolume(ColouredFluidKey key, FluidAmount amount)FluidUnit(FluidAmount unitAmount, java.lang.String key)FluidVolume(FluidKey key, FluidAmount amount)PotionFluidVolume(PotionFluidKey key, FluidAmount amount)SimpleFluidVolume(SimpleFluidKey key, FluidAmount amount)WeightedFluidVolume(WeightedFluidKey<T> key, T value, FluidAmount amount)