Uses of Class
alexiil.mc.lib.attributes.fluid.amount.FluidAmount
Packages that use FluidAmount
Package
Description
The base package for
fluid management.-
Uses of FluidAmount in alexiil.mc.lib.attributes.fluid
Fields in alexiil.mc.lib.attributes.fluid declared as FluidAmountModifier and TypeFieldDescriptionfinal FluidAmountGroupedFluidInvView.FluidInvStatistic.amount_FThe total amount of the given filter.final FluidAmountFluidContainerRegistry.FluidFillHandler.minimumfinal FluidAmountGroupedFluidInvView.FluidInvStatistic.spaceAddable_FThe total amount of space that the given filter can be added to (where an inventory already contains a partial stack).final 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 FluidAmountModifier and TypeMethodDescriptionFluidVolumeUtil.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) final FluidAmountSingleFluidTankView.getMaxAmount_F()default FluidAmountFluidInsertable.getMinimumAcceptedAmount()final FluidAmountSingleFluidTankView.getSpace()default FluidAmountGroupedFluidInvView.getSpace_F(FluidKey fluid) default FluidAmountGroupedFluidInvView.getTotalCapacity_F()Methods in alexiil.mc.lib.attributes.fluid with parameters of type FluidAmountModifier and TypeMethodDescriptiondefault FluidVolumeFluidExtractable.attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation) default FluidVolumeFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) SingleFluidTank.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) FluidVolumeUtil.computeExtraction(FluidVolume inTank, FluidFilter filter, FluidAmount maxAmount) Computes the result ofFluidVolumeUtil.extractSingle(FixedFluidInv, int, FluidFilter, FluidVolume, FluidAmount, Simulation), but without actually modifying an inventory.FluidVolumeUtil.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.FluidVolumeUtil.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, for removal: This API element is subject to removal in a future version.FluidInvUtil.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.FluidInvUtil.interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum) This is the "interactCursorWithTank" variant that takes a singleFixedFluidInv.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.interactCursorWithTank(FluidTransferable inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum) This is the "interactCursorWithTank" variant that takes a singleFluidTransferable.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidInvUtil.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.FluidTankLimitRule.limitInsertionAmount(FluidAmount max) Limits the amount of fluid that can be inserted (in total) to the given count.LimitedGroupedFluidInv.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.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.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 FluidAmountModifierConstructorDescriptionFluidFillHandler(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 FluidAmountModifier and TypeFieldDescriptionstatic final FluidAmountFluidAmount.A_MILLIONA very large amount of fluid - one million buckets.static final FluidAmountFluidAmount.ABSOLUTE_MAXIMUMThe maximum possible value that a validFluidAmountcan hold.static final FluidAmountFluidAmount.ABSOLUTE_MINIMUMThe minimum possible value that a validFluidAmountcan hold.static final FluidAmountFluidAmount.BOTTLEOne bottle is equal to a third of a bucket.static final FluidAmountFluidAmount.BUCKETOne bucket of fluid - which is alwaysONE.final FluidAmountFluidAmount.FluidMergeResult.excessThe leftover from the merging.static final FluidAmountFluidAmount.MAX_BUCKETSLong.MAX_VALUEof buckets.static final FluidAmountFluidAmount.MAX_VALUEDeprecated, for removal: This API element is subject to removal in a future version.AsMAX_BUCKETSshould generally be used instead, however if you really need the absolute value then you can useABSOLUTE_MAXIMUM.final FluidAmountFluidAmount.FluidMergeResult.mergedThe result of the merging.static final FluidAmountFluidAmount.MIN_BUCKETSLong.MIN_VALUEof buckets.static final FluidAmountFluidAmount.MIN_VALUEDeprecated, for removal: This API element is subject to removal in a future version.AsMIN_BUCKETSshould generally be used instead, however if you really need the absolute minimum value then you can useABSOLUTE_MINIMUM.static final FluidAmountFluidAmount.NEGATIVE_ONEstatic final FluidAmountFluidAmount.ONEfinal FluidAmountFluidAmount.SafeAddResult.roundedResultstatic final FluidAmountFluidAmount.ZEROFields in alexiil.mc.lib.attributes.fluid.amount with type parameters of type FluidAmountModifier and TypeFieldDescriptionstatic final com.google.gson.JsonDeserializer<FluidAmount>FluidAmount.DESERIALIZERMethods in alexiil.mc.lib.attributes.fluid.amount that return FluidAmountModifier and TypeMethodDescriptionFluidAmount.add(long by) Adds the given long value to thisFluidAmount, without performing any checking or saturation.FluidAmount.add(FluidAmount other) The recommended method for adding twoFluidAmount's together if you don't want to think about inexact answers.BigFluidAmount.asLongIntExact()FluidAmount.asLongIntExact()BigFluidAmount.asLongIntRounded()Converts this into a normal long-basedFluidAmount.BigFluidAmount.asLongIntRounded(RoundingMode rounding) Converts this into a normal long-basedFluidAmount.BigFluidAmount.asLongIntSaturated()Converts this into a normal long-basedFluidAmount.FluidAmount.checkedAdd(FluidAmount by) Directly adds the givenFluidAmountto this one.FluidAmount.checkedDiv(long by) FluidAmount.checkedDiv(FluidAmount by) FluidAmount.checkedMul(long by) FluidAmount.checkedMul(FluidAmount by) FluidAmount.checkedSub(FluidAmount by) FluidAmount.div(long other) The recommended method for dividing this by aLongif you don't want to think about inexact answers.FluidAmount.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, for removal: This API element is subject to removal in a future version.Useparse(String)instead.static FluidAmountFluidAmount.fromJson(com.google.gson.JsonElement json) static FluidAmountFluidAmount.fromMcBuffer(net.minecraft.network.PacketByteBuf buffer) static FluidAmountFluidAmount.fromNbt(net.minecraft.nbt.NbtCompound tag) static FluidAmountFluidAmount.fromStdBuffer(io.netty.buffer.ByteBuf buffer) FluidAmount.getDivisor()FluidAmount.lcm(FluidAmount other) FluidAmount.mul(long by) The recommended method for multiplying this by a long if you don't want to think about inexact answers.FluidAmount.mul(FluidAmount by) The recommended method for multiplying twoFluidAmount's together if you don't want to think about inexact answers.FluidAmount.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 FluidAmountAttempts to parse the given text as aFluidAmount.FluidAmount.reciprocal()FluidAmount.roundedAdd(FluidAmount other) FluidAmount.roundedAdd(FluidAmount other, RoundingMode rounding) FluidAmount.roundedDiv(long by) FluidAmount.roundedDiv(long by, RoundingMode rounding) FluidAmount.roundedDiv(FluidAmount by) FluidAmount.roundedDiv(FluidAmount by, RoundingMode rounding) FluidAmount.roundedMul(long by) FluidAmount.roundedMul(long by, RoundingMode rounding) FluidAmount.roundedMul(FluidAmount by) FluidAmount.roundedMul(FluidAmount by, RoundingMode rounding) FluidAmount.roundedSub(FluidAmount by) FluidAmount.roundedSub(FluidAmount by, RoundingMode rounding) FluidAmount.saturatedAdd(FluidAmount by) Similar tocheckedAdd(FluidAmount), but returns eitherMAX_BUCKETSorMIN_BUCKETSinstead of throwing an exception.FluidAmount.saturatedDiv(long by) FluidAmount.saturatedDiv(FluidAmount by) FluidAmount.saturatedMul(long by) FluidAmount.saturatedMul(FluidAmount by) FluidAmount.saturatedSub(FluidAmount by) FluidAmount.splitBalanced(int count) Splits thisFluidAmountevenly into the given count, but not letting the denominator exceed the default value (2000).FluidAmount.splitBalanced(int count, long maxDenominator) Splits thisFluidAmountevenly into the given count, but not letting the denominator exceed the given value.FluidAmount.splitBalanced(FluidAmount[] dest, long maxDenominator) Splits thisFluidAmountevenly into the given count, but not letting the denominator exceed the given value.FluidAmount.sub(long by) FluidAmount.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 FluidAmountModifier and TypeMethodDescriptionBigFluidAmount.add(FluidAmount by) FluidAmount.add(FluidAmount other) The recommended method for adding twoFluidAmount's together if you don't want to think about inexact answers.FluidAmount.bigAdd(FluidAmount by) Directly adds the givenFluidAmountto this one, returning the result as aBigFluidAmount.FluidAmount.bigDiv(FluidAmount by) FluidAmount.bigMul(FluidAmount by) FluidAmount.checkedAdd(FluidAmount by) Directly adds the givenFluidAmountto this one.FluidAmount.checkedDiv(FluidAmount by) FluidAmount.checkedMul(FluidAmount by) FluidAmount.checkedSub(FluidAmount by) intFluidAmount.compareTo(FluidAmount o) BigFluidAmount.div(FluidAmount by) FluidAmount.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) FluidAmount.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) BigFluidAmount.mul(FluidAmount by) FluidAmount.mul(FluidAmount by) The recommended method for multiplying twoFluidAmount's together if you don't want to think about inexact answers.FluidAmount.roundedAdd(FluidAmount other) FluidAmount.roundedAdd(FluidAmount other, RoundingMode rounding) FluidAmount.roundedDiv(FluidAmount by) FluidAmount.roundedDiv(FluidAmount by, RoundingMode rounding) FluidAmount.roundedMul(FluidAmount by) FluidAmount.roundedMul(FluidAmount by, RoundingMode rounding) FluidAmount.roundedSub(FluidAmount by) FluidAmount.roundedSub(FluidAmount by, RoundingMode rounding) FluidAmount.safeAdd(FluidAmount other) Safely adds the givenFluidAmountto this one, returning the merged result.FluidAmount.safeAdd(FluidAmount other, RoundingMode rounding) Safely adds the givenFluidAmountto this one, returning the merged result.FluidAmount.safeSub(FluidAmount by) FluidAmount.safeSub(FluidAmount by, RoundingMode rounding) FluidAmount.saturatedAdd(FluidAmount by) Similar tocheckedAdd(FluidAmount), but returns eitherMAX_BUCKETSorMIN_BUCKETSinstead of throwing an exception.FluidAmount.saturatedDiv(FluidAmount by) FluidAmount.saturatedMul(FluidAmount by) FluidAmount.saturatedSub(FluidAmount by) FluidAmount.splitBalanced(FluidAmount[] dest, long maxDenominator) Splits thisFluidAmountevenly into the given count, but not letting the denominator exceed the given value.BigFluidAmount.sub(FluidAmount by) FluidAmount.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 FluidAmountModifierConstructorDescriptionBigFluidAmount(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 FluidAmountModifier and TypeFieldDescriptionprotected final FluidAmount[]SimpleLimitedFixedFluidInv.maxInsertionAmountsArray of maximum amounts that can be inserted up to.protected final FluidAmount[]SimpleLimitedFixedFluidInv.minimumAmountsArray of minimum amounts that can be extracted down to.final FluidAmountSimpleFixedFluidInv.tankCapacity_FMethods in alexiil.mc.lib.attributes.fluid.impl that return FluidAmountModifier and TypeMethodDescriptionAbstractPartialFixedFluidInvView.getMaxAmount_F(int tank) CombinedFixedFluidInvView.getMaxAmount_F(int tank) DelegatingFixedFluidInv.getMaxAmount_F(int tank) SimpleFixedFluidInv.getMaxAmount_F(int tank) SimpleLimitedFixedFluidInv.getMaxAmount_F(int tank) CombinedFluidInsertable.getMinimumAcceptedAmount()FilteredFluidInsertable.getMinimumAcceptedAmount()FilteredFluidTransferable.getMinimumAcceptedAmount()SimpleFixedFluidInv.getMinimumAcceptedAmount()SimpleFixedFluidInvInsertable.getMinimumAcceptedAmount()Deprecated, for removal: This API element is subject to removal in a future version.CombinedGroupedFluidInvView.getTotalCapacity_F()DelegatingGroupedFluidInv.getTotalCapacity_F()EmptyGroupedFluidInv.getTotalCapacity_F()GroupedFluidInvViewFixedWrapper.getTotalCapacity_F()Methods in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidAmountModifier and TypeMethodDescriptionDelegatingGroupedFluidInv.attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation) SimpleFixedFluidInv.attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation) CombinedFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) CombinedGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) DelegatingGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) EmptyFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) FilteredFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) FilteredFluidTransferable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) GroupedFluidInvFixedWrapper.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) SimpleFixedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) SimpleFixedFluidInvExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) Constructors in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidAmountModifierConstructorDescriptionJumboFixedFluidInv(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 FluidAmountModifier and TypeFieldDescriptionfinal FluidAmountItemBasedSingleFluidInv.HeldFluidInfo.capacityMethods in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidAmountModifier and TypeMethodDescriptionItemBasedSingleFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) Constructors in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidAmount -
Uses of FluidAmount in alexiil.mc.lib.attributes.fluid.mixin.api
Methods in alexiil.mc.lib.attributes.fluid.mixin.api that return FluidAmount -
Uses of FluidAmount in alexiil.mc.lib.attributes.fluid.volume
Fields in alexiil.mc.lib.attributes.fluid.volume declared as FluidAmountModifier and TypeFieldDescriptionfinal FluidAmountFluidKey.cohesionHow much this fluid will spread itself around.static final FluidAmountFluidKey.DEFAULT_GAS_COHESIONThe defaultFluidKey.cohesionthat gases use: 1/24static final FluidAmountFluidKey.DEFAULT_GAS_DENSITYThe defaultFluidKey.density(andFluidKey.thermalCapacity) that gases use: 1/160.static final FluidAmountFluidKey.DEFAULT_GAS_VISCOSITYThe defaultFluidKey.viscositythat gases use: 1/24.final FluidAmountFluidKey.densityHow dense this fluid is.final FluidAmountFluidKey.netherCohesionSpecial-case property for fluids to have differentFluidKey.cohesionvalues in the nether.final FluidAmountFluidKey.netherViscositySpecial-case property for fluids to have differentFluidKey.viscosityvalues in the nether.final FluidAmountFluidKey.thermalCapacityHow much energy is required to make this fluid change it's temperature.final FluidAmountFluidKey.viscosityHow much this fluid resists attempts to move it around.Methods in alexiil.mc.lib.attributes.fluid.volume that return FluidAmountModifier and TypeMethodDescriptionFluidVolume.amount()An alternate name forFluidVolume.getAmount_F().final 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 final 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 FluidAmountMethods in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidAmountModifier and TypeMethodDescriptionvoidWeightedFluidVolume.addAmount(T value, FluidAmount amount) voidWeightedFluidVolume.addAmount(T value, FluidAmount amount, FluidAmount.FluidMergeRounding rounding) final voidFluidVolume.addFullTooltip(FluidAmount capacity, FluidTooltipContext context, List<net.minecraft.text.Text> tooltip) Adds the complete tooltip for thisFluidVolumeto the given tooltip.final voidFluidVolume.addFullTooltip(FluidAmount capacity, List<net.minecraft.text.Text> tooltip) Adds the complete tooltip for thisFluidVolumeto the given tooltip.final voidFluidVolume.addTooltipNameAmount(FluidAmount capacity, FluidTooltipContext context, 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) final net.minecraft.text.TextFluidUnitBase.getAmount(FluidAmount amount) final net.minecraft.text.TextFluidUnitBase.getAmount(FluidAmount amount, boolean forceSingular) final net.minecraft.text.TextFluidUnitBase.getAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx) final 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) final net.minecraft.text.TextFluidUnitBase.getAmount(FluidAmount amount, FluidTooltipContext ctx) final net.minecraft.text.TextFluidUnitBase.getAmount(FluidAmount amount, net.minecraft.text.Text fluidName) final 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) final 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) final net.minecraft.text.TextFluidUnitBase.getFlowRate(FluidAmount amountPerTick) final net.minecraft.text.TextFluidUnitBase.getFlowRate(FluidAmount amountPerTick, FluidTooltipContext ctx) final 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) final net.minecraft.text.TextFluidUnitBase.getFullTank(FluidAmount capacity) final net.minecraft.text.TextFluidUnitBase.getFullTank(FluidAmount capacity, FluidTooltipContext ctx) final 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) final 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.final 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) final net.minecraft.text.TextFluidUnitBase.getPartialTank(FluidAmount amount, FluidAmount capacity) final net.minecraft.text.TextFluidUnitBase.getPartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) final 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) final net.minecraft.text.TextFluidUnitBase.getTank(FluidAmount amount, FluidAmount capacity) final net.minecraft.text.TextFluidUnitBase.getTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) final net.minecraft.text.TextFluidUnitBase.getTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName) final net.minecraft.text.TextFluidUnitBase.getTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) FluidUnit.localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final StringFluidUnitBase.localizeAmount(FluidAmount amount) final StringFluidUnitBase.localizeAmount(FluidAmount amount, boolean forceSingular) final StringFluidUnitBase.localizeAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx) final StringFluidUnitBase.localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName) abstract StringFluidUnitBase.localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final StringFluidUnitBase.localizeAmount(FluidAmount amount, FluidTooltipContext ctx) final StringFluidUnitBase.localizeAmount(FluidAmount amount, net.minecraft.text.Text fluidName) final StringFluidUnitBase.localizeAmount(FluidAmount amount, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) FluidUnitSet.localizeAmount(FluidAmount amount, boolean forceLastSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) FluidUnit.localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx) final StringFluidUnitBase.localizeEmptyTank(FluidAmount capacity) abstract StringFluidUnitBase.localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx) FluidUnitSet.localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx) FluidUnit.localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final StringFluidUnitBase.localizeFlowRate(FluidAmount amountPerTick) final StringFluidUnitBase.localizeFlowRate(FluidAmount amountPerTick, FluidTooltipContext ctx) final StringFluidUnitBase.localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName) abstract StringFluidUnitBase.localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) FluidUnitSet.localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) FluidUnit.localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final StringFluidUnitBase.localizeFullTank(FluidAmount capacity) final StringFluidUnitBase.localizeFullTank(FluidAmount capacity, FluidTooltipContext ctx) final StringFluidUnitBase.localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName) abstract StringFluidUnitBase.localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) FluidUnitSet.localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) FluidVolume.localizeInTank(FluidAmount capacity) final StringFluidVolume.localizeInTank(FluidAmount capacity, FluidTooltipContext ctx) FluidUnit.localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final StringFluidUnitBase.localizePartialTank(FluidAmount amount, FluidAmount capacity) final StringFluidUnitBase.localizePartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) final StringFluidUnitBase.localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName) abstract StringFluidUnitBase.localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) FluidUnitSet.localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final StringFluidUnitBase.localizeTank(FluidAmount amount, FluidAmount capacity) final StringFluidUnitBase.localizeTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) final StringFluidUnitBase.localizeTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName) final 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 final voidFluidVolume.setAmount(FluidAmount newAmount) Protected to allow the implementation ofFluidVolume.split(FluidAmount)andFluidVolume.merge0(FluidVolume, FluidMergeRounding)to set the amount.FluidKey.FluidKeyBuilder.setCohesion(FluidAmount to) Sets theFluidKey.cohesionproperty to the givenFluidAmount, or null to use the default value.FluidKey.FluidKeyBuilder.setDensity(FluidAmount to) Sets theFluidKey.densityproperty to the givenFluidAmount, or null to use the default value.FluidKey.FluidKeyBuilder.setNetherCohesion(FluidAmount to) Sets theFluidKey.netherCohesionproperty to the givenFluidAmount, or null to use the default value.FluidKey.FluidKeyBuilder.setNetherViscosity(FluidAmount to) Sets theFluidKey.netherViscosityproperty to the givenFluidAmount, or null to use the default value.FluidKey.FluidKeyBuilder.setThermalCapacity(FluidAmount to) Sets theFluidKey.thermalCapacityproperty to the givenFluidAmount, or null to use the default value.FluidKey.FluidKeyBuilder.setViscosity(FluidAmount to) Sets theFluidKey.viscosityproperty to the givenFluidAmount, or null to use the default value.final 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.final FluidVolumeFluidVolume.split(FluidAmount toRemove, 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, RoundingMode rounding) protected FluidVolumeFluidVolume.split0(FluidAmount toTake, RoundingMode rounding) protected WeightedFluidVolume<T>WeightedFluidVolume.split0(FluidAmount toTake, RoundingMode rounding) BiomeSourcedFluidKey.withAmount(FluidAmount amount) BiomeSourcedFluidKey.withAmount(net.minecraft.world.biome.Biome source, FluidAmount amount) ColouredFluidKey.withAmount(FluidAmount amount) FluidKey.withAmount(FluidAmount amount) FluidVolume.withAmount(FluidAmount newAmount) Creates a copy of this fluid with the given amount.NormalFluidKey.withAmount(FluidAmount amount) Deprecated, for removal: This API element is subject to removal in a future version.PotionFluidKey.withAmount(FluidAmount amount) SimpleFluidKey.withAmount(FluidAmount amount) 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 FluidAmountModifier and TypeMethodDescriptionvoidWeightedFluidVolume.addAmounts(Map<T, FluidAmount> sources) protected voidWeightedFluidVolume.readValuesFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, Map<T, FluidAmount> map) protected voidWeightedFluidVolume.writeValuesToMcBuffer(net.minecraft.network.PacketByteBuf buffer, Map<T, FluidAmount> map) Constructors in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidAmountModifierConstructorDescriptionBiomeSourcedFluidVolume(BiomeSourcedFluidKey key, FluidAmount amount) BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.world.biome.Biome source, FluidAmount amount) ColouredFluidVolume(ColouredFluidKey key, FluidAmount amount) FluidUnit(FluidAmount unitAmount, String key) FluidVolume(FluidKey key, FluidAmount amount) PotionFluidVolume(PotionFluidKey key, FluidAmount amount) protectedSimpleFluidVolume(SimpleFluidKey key, FluidAmount amount) WeightedFluidVolume(WeightedFluidKey<T> key, T value, FluidAmount amount)
FixedFluidInv.extractFluid(int, FluidFilter, FluidVolume, FluidAmount, Simulation)