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 FluidAmount
GroupedFluidInvView.FluidInvStatistic. amount_F
The total amount of the given filter.FluidAmount
FluidContainerRegistry.FluidFillHandler. minimum
FluidAmount
GroupedFluidInvView.FluidInvStatistic. spaceAddable_F
The total amount of space that the given filter can be added to (where an inventory already contains a partial stack).FluidAmount
GroupedFluidInvView.FluidInvStatistic. spaceTotal_F
The 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 FluidAmount
FluidVolumeUtil.FluidTankInteraction. amountMoved_F()
default FluidAmount
GroupedFluidInvView. getAmount_F(FluidFilter filter)
default FluidAmount
GroupedFluidInvView. getAmount_F(FluidKey fluid)
protected abstract FluidAmount
FluidContainerRegistry.FluidFillHandler. getCapacity(FluidFilter filter)
default FluidAmount
GroupedFluidInvView. getCapacity_F(FluidKey fluid)
default FluidAmount
FixedFluidInvView. getMaxAmount_F(int tank)
FluidAmount
SingleFluidTankView. getMaxAmount_F()
default FluidAmount
FluidInsertable. getMinimumAcceptedAmount()
FluidAmount
SingleFluidTankView. getSpace()
default FluidAmount
GroupedFluidInvView. getSpace_F(FluidKey fluid)
default FluidAmount
GroupedFluidInvView. getTotalCapacity_F()
Methods in alexiil.mc.lib.attributes.fluid with parameters of type FluidAmount Modifier and Type Method Description default FluidVolume
FluidExtractable. attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)
default FluidVolume
FluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
SingleFluidTank. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
static FluidVolumeUtil.FluidTransferResult
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.static FluidVolumeUtil.FluidTransferResult
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.static FluidVolumeUtil.FluidTransferResult
FluidVolumeUtil. computeInsertion(FluidVolume current, FluidAmount capacity, FluidVolume toInsert)
Computes the result ofFluidVolumeUtil.insertSingle(FixedFluidInv, int, FluidVolume, Simulation)
, but without actually modifying an inventory.default FluidVolume
FluidExtractable. extract(FluidAmount maxAmount)
Attempt to extract *any*FluidVolume
from this.default FluidVolume
FluidExtractable. extract(FluidFilter filter, FluidAmount maxAmount)
default FluidVolume
FluidExtractable. extract(FluidKey filter, FluidAmount maxAmount)
default FluidVolume
FixedFluidInv. 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 FluidVolume
FluidVolumeUtil. extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount, Simulation simulation)
Deprecated.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player, FluidAmount maximum)
This is the "interactCursorWithTank" variant that takes a singleFixedFluidInv
and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum)
This is the "interactCursorWithTank" variant that takes a singleFixedFluidInv
.static FluidVolumeUtil.FluidTankInteraction
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.static FluidVolumeUtil.FluidTankInteraction
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.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactCursorWithTank(FluidTransferable inv, net.minecraft.server.network.ServerPlayerEntity player, FluidAmount maximum)
This is the "interactCursorWithTank" variant that takes a singleFluidTransferable
and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactCursorWithTank(FluidTransferable inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum)
This is the "interactCursorWithTank" variant that takes a singleFluidTransferable
.static FluidVolumeUtil.FluidTankInteraction
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 singleFixedFluidInv
and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteraction
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
.static FluidVolumeUtil.FluidTankInteraction
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.static FluidVolumeUtil.FluidTankInteraction
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.static FluidVolumeUtil.FluidTankInteraction
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 singleFluidTransferable
and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteraction
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
.static FluidVolumeUtil.FluidTankInteraction
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 singleFixedFluidInv
for the insertable/extractable tanks, and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteraction
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 singleFixedFluidInv
for the insertable/extractable tanks.static FluidVolumeUtil.FluidTankInteraction
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.static FluidVolumeUtil.FluidTankInteraction
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.static FluidVolumeUtil.FluidTankInteraction
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 singleFluidTransferable
for the insertable/extractable tanks, and doesn't filter what is moved.static FluidVolumeUtil.FluidTankInteraction
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 singleFluidTransferable
for the insertable/extractable tanks.static FluidVolumeUtil.FluidTankInteraction
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.static FluidVolumeUtil.FluidTankInteraction
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
.static FluidVolumeUtil.FluidTankInteraction
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.static FluidVolumeUtil.FluidTankInteraction
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.static FluidVolumeUtil.FluidTankInteraction
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.static FluidVolumeUtil.FluidTankInteraction
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
LimitedFixedFluidInv.FluidTankLimitRule. limitInsertionAmount(FluidAmount max)
Limits the amount of fluid that can be inserted (in total) to the given count.LimitedGroupedFluidInv.FluidLimitRule
LimitedGroupedFluidInv.FluidLimitRule. limitInsertionAmount(FluidAmount max)
Limits the amount of fluid that can be inserted (in total) to the given amount.static FluidVolume
FluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidAmount maximum)
Attempts to move up to the given amount of fluid from theFluidExtractable
to theFluidInsertable
.static FluidVolume
FluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidAmount maximum, Simulation simulation)
Attempts to move up to the given amount of fluid from theFluidExtractable
to theFluidInsertable
.static FluidVolume
FluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum)
Attempts to move up to the given maximum amount of fluids from theFluidExtractable
to theFluidInsertable
, provided they match the givenFluidFilter
.static FluidVolume
FluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum, Simulation simulation)
Attempts to move up to the given maximum amount of fluids from theFluidExtractable
to theFluidInsertable
, provided they match the givenFluidFilter
.void
FluidInvAmountChangeListener_F. onChange(GroupedFluidInvView inv, FluidKey fluid, FluidAmount previous, FluidAmount current)
static void
FluidContainerRegistry. registerFillHandler(net.minecraft.item.Item empty, FluidAmount minimum, FluidAmount capacity, FluidContainerRegistry.FluidFillFunction fn)
static void
FluidContainerRegistry. registerFillHandler(net.minecraft.item.Item empty, FluidFilter fluids, boolean isFilterSpecific, FluidAmount minimum, FluidAmount capacity, FluidContainerRegistry.FluidFillFunction fn)
static void
FluidContainerRegistry. 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 filledItemStack
s with differentItem
s to the original.LimitedFixedFluidInv.FluidTankLimitRule
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
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 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 FluidAmount
FluidAmount. A_MILLION
A very large amount of fluid - one million buckets.static FluidAmount
FluidAmount. ABSOLUTE_MAXIMUM
The maximum possible value that a validFluidAmount
can hold.static FluidAmount
FluidAmount. ABSOLUTE_MINIMUM
The minimum possible value that a validFluidAmount
can hold.static FluidAmount
FluidAmount. BOTTLE
One bottle is equal to a third of a bucket.static FluidAmount
FluidAmount. BUCKET
One bucket of fluid - which is alwaysONE
.FluidAmount
FluidAmount.FluidMergeResult. excess
The leftover from the merging.static FluidAmount
FluidAmount. MAX_BUCKETS
Long.MAX_VALUE
of buckets.static FluidAmount
FluidAmount. MAX_VALUE
Deprecated.AsMAX_BUCKETS
should generally be used instead, however if you really need the absolute value then you can useABSOLUTE_MAXIMUM
.FluidAmount
FluidAmount.FluidMergeResult. merged
The result of the merging.static FluidAmount
FluidAmount. MIN_BUCKETS
Long.MIN_VALUE
of buckets.static FluidAmount
FluidAmount. MIN_VALUE
Deprecated.AsMIN_BUCKETS
should generally be used instead, however if you really need the absolute minimum value then you can useABSOLUTE_MINIMUM
.static FluidAmount
FluidAmount. NEGATIVE_ONE
static FluidAmount
FluidAmount. ONE
FluidAmount
FluidAmount.SafeAddResult. roundedResult
static FluidAmount
FluidAmount. ZERO
Fields in alexiil.mc.lib.attributes.fluid.amount with type parameters of type FluidAmount Modifier and Type Field Description static com.google.gson.JsonDeserializer<FluidAmount>
FluidAmount. DESERIALIZER
Methods in alexiil.mc.lib.attributes.fluid.amount that return FluidAmount Modifier and Type Method Description FluidAmount
FluidAmount. add(long by)
Adds the given long value to thisFluidAmount
, without performing any checking or saturation.FluidAmount
FluidAmount. add(FluidAmount other)
The recommended method for adding twoFluidAmount
's together if you don't want to think about inexact answers.FluidAmount
BigFluidAmount. asLongIntExact()
FluidAmount
FluidAmount. asLongIntExact()
FluidAmount
BigFluidAmount. asLongIntRounded()
Converts this into a normal long-basedFluidAmount
.FluidAmount
BigFluidAmount. asLongIntRounded(java.math.RoundingMode rounding)
Converts this into a normal long-basedFluidAmount
.FluidAmount
BigFluidAmount. asLongIntSaturated()
Converts this into a normal long-basedFluidAmount
.FluidAmount
FluidAmount. checkedAdd(FluidAmount by)
Directly adds the givenFluidAmount
to this one.FluidAmount
FluidAmount. checkedDiv(long by)
FluidAmount
FluidAmount. checkedDiv(FluidAmount by)
FluidAmount
FluidAmount. checkedMul(long by)
FluidAmount
FluidAmount. checkedMul(FluidAmount by)
FluidAmount
FluidAmount. checkedSub(FluidAmount by)
FluidAmount
FluidAmount. div(long other)
The recommended method for dividing this by aLong
if you don't want to think about inexact answers.FluidAmount
FluidAmount. div(FluidAmount other)
The recommended method for dividing this by anotherFluidAmount
if you don't want to think about inexact answers.static FluidAmount
FluidAmount. fromDouble(double value)
Deprecated.Useparse(String)
instead.static FluidAmount
FluidAmount. fromJson(com.google.gson.JsonElement json)
static FluidAmount
FluidAmount. fromMcBuffer(net.minecraft.network.PacketByteBuf buffer)
static FluidAmount
FluidAmount. fromNbt(net.minecraft.nbt.CompoundTag tag)
static FluidAmount
FluidAmount. fromStdBuffer(io.netty.buffer.ByteBuf buffer)
FluidAmount
FluidAmount. getDivisor()
FluidAmount
FluidAmount. lcm(FluidAmount other)
FluidAmount
FluidAmount. mul(long by)
The recommended method for multiplying this by a long if you don't want to think about inexact answers.FluidAmount
FluidAmount. mul(FluidAmount by)
The recommended method for multiplying twoFluidAmount
's together if you don't want to think about inexact answers.FluidAmount
FluidAmount. negate()
static FluidAmount
FluidAmount. of(long numerator, long denominator)
Creates a newFluidAmount
with the given values.static FluidAmount
FluidAmount. of(long whole, long numerator, long denominator)
Creates a newFluidAmount
with the given values.static FluidAmount
FluidAmount. of1620(int amount)
Legacy conversion method for creating a fraction with the given amount as it's numerator, and 1620 as it's denominatorstatic FluidAmount
FluidAmount. ofWhole(long whole)
Creates a newFluidAmount
with the given values.static FluidAmount
FluidAmount. parse(java.lang.String text)
Attempts to parse the given text as aFluidAmount
.FluidAmount
FluidAmount. reciprocal()
FluidAmount
FluidAmount. roundedAdd(FluidAmount other)
FluidAmount
FluidAmount. roundedAdd(FluidAmount other, java.math.RoundingMode rounding)
FluidAmount
FluidAmount. roundedDiv(long by)
FluidAmount
FluidAmount. roundedDiv(long by, java.math.RoundingMode rounding)
FluidAmount
FluidAmount. roundedDiv(FluidAmount by)
FluidAmount
FluidAmount. roundedDiv(FluidAmount by, java.math.RoundingMode rounding)
FluidAmount
FluidAmount. roundedMul(long by)
FluidAmount
FluidAmount. roundedMul(long by, java.math.RoundingMode rounding)
FluidAmount
FluidAmount. roundedMul(FluidAmount by)
FluidAmount
FluidAmount. roundedMul(FluidAmount by, java.math.RoundingMode rounding)
FluidAmount
FluidAmount. roundedSub(FluidAmount by)
FluidAmount
FluidAmount. roundedSub(FluidAmount by, java.math.RoundingMode rounding)
FluidAmount
FluidAmount. saturatedAdd(FluidAmount by)
Similar tocheckedAdd(FluidAmount)
, but returns eitherMAX_BUCKETS
orMIN_BUCKETS
instead of throwing an exception.FluidAmount
FluidAmount. saturatedDiv(long by)
FluidAmount
FluidAmount. saturatedDiv(FluidAmount by)
FluidAmount
FluidAmount. saturatedMul(long by)
FluidAmount
FluidAmount. saturatedMul(FluidAmount by)
FluidAmount
FluidAmount. saturatedSub(FluidAmount by)
FluidAmount
FluidAmount. sub(long by)
FluidAmount
FluidAmount. sub(FluidAmount other)
The recommended method for subtracting anotherFluidAmount
from 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 BigFluidAmount
BigFluidAmount. add(FluidAmount by)
FluidAmount
FluidAmount. add(FluidAmount other)
The recommended method for adding twoFluidAmount
's together if you don't want to think about inexact answers.BigFluidAmount
FluidAmount. bigAdd(FluidAmount by)
Directly adds the givenFluidAmount
to this one, returning the result as aBigFluidAmount
.BigFluidAmount
FluidAmount. bigDiv(FluidAmount by)
BigFluidAmount
FluidAmount. bigMul(FluidAmount by)
FluidAmount
FluidAmount. checkedAdd(FluidAmount by)
Directly adds the givenFluidAmount
to this one.FluidAmount
FluidAmount. checkedDiv(FluidAmount by)
FluidAmount
FluidAmount. checkedMul(FluidAmount by)
FluidAmount
FluidAmount. checkedSub(FluidAmount by)
int
FluidAmount. compareTo(FluidAmount o)
BigFluidAmount
BigFluidAmount. div(FluidAmount by)
FluidAmount
FluidAmount. div(FluidAmount other)
The recommended method for dividing this by anotherFluidAmount
if you don't want to think about inexact answers.boolean
FluidAmount. equals(FluidAmount other)
long
FluidAmount. getCountOf(FluidAmount by)
FluidAmount
FluidAmount. lcm(FluidAmount other)
static FluidAmount.FluidMergeResult
FluidAmount. merge(FluidAmount target, FluidAmount toAdd)
static FluidAmount.FluidMergeResult
FluidAmount. merge(FluidAmount target, FluidAmount toAdd, long denominatorTarget, long denominatorAdd)
static FluidAmount.FluidMergeResult
FluidAmount. merge(FluidAmount target, FluidAmount toAdd, FluidAmount.FluidMergeRounding rounding)
BigFluidAmount
BigFluidAmount. mul(FluidAmount by)
FluidAmount
FluidAmount. mul(FluidAmount by)
The recommended method for multiplying twoFluidAmount
's together if you don't want to think about inexact answers.FluidAmount
FluidAmount. roundedAdd(FluidAmount other)
FluidAmount
FluidAmount. roundedAdd(FluidAmount other, java.math.RoundingMode rounding)
FluidAmount
FluidAmount. roundedDiv(FluidAmount by)
FluidAmount
FluidAmount. roundedDiv(FluidAmount by, java.math.RoundingMode rounding)
FluidAmount
FluidAmount. roundedMul(FluidAmount by)
FluidAmount
FluidAmount. roundedMul(FluidAmount by, java.math.RoundingMode rounding)
FluidAmount
FluidAmount. roundedSub(FluidAmount by)
FluidAmount
FluidAmount. roundedSub(FluidAmount by, java.math.RoundingMode rounding)
FluidAmount.SafeAddResult
FluidAmount. safeAdd(FluidAmount other)
Safely adds the givenFluidAmount
to this one, returning the merged result.FluidAmount.SafeAddResult
FluidAmount. safeAdd(FluidAmount other, java.math.RoundingMode rounding)
Safely adds the givenFluidAmount
to this one, returning the merged result.FluidAmount.SafeAddResult
FluidAmount. safeSub(FluidAmount by)
FluidAmount.SafeAddResult
FluidAmount. safeSub(FluidAmount by, java.math.RoundingMode rounding)
FluidAmount
FluidAmount. saturatedAdd(FluidAmount by)
Similar tocheckedAdd(FluidAmount)
, but returns eitherMAX_BUCKETS
orMIN_BUCKETS
instead of throwing an exception.FluidAmount
FluidAmount. saturatedDiv(FluidAmount by)
FluidAmount
FluidAmount. saturatedMul(FluidAmount by)
FluidAmount
FluidAmount. saturatedSub(FluidAmount by)
BigFluidAmount
BigFluidAmount. sub(FluidAmount by)
FluidAmount
FluidAmount. sub(FluidAmount other)
The recommended method for subtracting anotherFluidAmount
from 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.FluidMergeResult
with the givenFluidAmount.FluidMergeResult.merged
value, and with bothFluidAmount.FluidMergeResult.excess
andFluidAmount.FluidMergeResult.roundingError
set 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. maxInsertionAmounts
Array of maximum amounts that can be inserted up to.protected FluidAmount[]
SimpleLimitedFixedFluidInv. minimumAmounts
Array of minimum amounts that can be extracted down to.FluidAmount
SimpleFixedFluidInv. tankCapacity_F
Methods in alexiil.mc.lib.attributes.fluid.impl that return FluidAmount Modifier and Type Method Description FluidAmount
AbstractPartialFixedFluidInvView. getMaxAmount_F(int tank)
FluidAmount
CombinedFixedFluidInvView. getMaxAmount_F(int tank)
FluidAmount
DelegatingFixedFluidInv. getMaxAmount_F(int tank)
FluidAmount
SimpleFixedFluidInv. getMaxAmount_F(int tank)
FluidAmount
SimpleLimitedFixedFluidInv. getMaxAmount_F(int tank)
FluidAmount
CombinedFluidInsertable. getMinimumAcceptedAmount()
FluidAmount
FilteredFluidInsertable. getMinimumAcceptedAmount()
FluidAmount
FilteredFluidTransferable. getMinimumAcceptedAmount()
FluidAmount
SimpleFixedFluidInv. getMinimumAcceptedAmount()
FluidAmount
SimpleFixedFluidInvInsertable. getMinimumAcceptedAmount()
Deprecated.FluidAmount
CombinedGroupedFluidInvView. getTotalCapacity_F()
FluidAmount
DelegatingGroupedFluidInv. getTotalCapacity_F()
FluidAmount
EmptyGroupedFluidInv. getTotalCapacity_F()
FluidAmount
GroupedFluidInvViewFixedWrapper. getTotalCapacity_F()
Methods in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidAmount Modifier and Type Method Description FluidVolume
DelegatingGroupedFluidInv. attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)
FluidVolume
SimpleFixedFluidInv. attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)
FluidVolume
CombinedFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
CombinedGroupedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
DelegatingGroupedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
EmptyFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
FilteredFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
FilteredFluidTransferable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
GroupedFluidInvFixedWrapper. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
SimpleFixedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
SimpleFixedFluidInvExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
Deprecated.FluidVolume
SimpleLimitedGroupedFluidInv. 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 FluidAmount
ItemBasedSingleFluidInv.HeldFluidInfo. capacity
Methods in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidAmount Modifier and Type Method Description FluidVolume
ItemBasedSingleFluidInv. 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 FluidAmount
IBucketItem. 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 FluidAmount
FluidKey. cohesion
How much this fluid will spread itself around.static FluidAmount
FluidKey. DEFAULT_GAS_COHESION
The defaultFluidKey.cohesion
that gases use: 1/24static FluidAmount
FluidKey. DEFAULT_GAS_DENSITY
The defaultFluidKey.density
(andFluidKey.thermalCapacity
) that gases use: 1/160.static FluidAmount
FluidKey. DEFAULT_GAS_VISCOSITY
The defaultFluidKey.viscosity
that gases use: 1/24.FluidAmount
FluidKey. density
How dense this fluid is.FluidAmount
FluidKey. netherCohesion
Special-case property for fluids to have differentFluidKey.cohesion
values in the nether.FluidAmount
FluidKey. netherViscosity
Special-case property for fluids to have differentFluidKey.viscosity
values in the nether.FluidAmount
FluidKey. thermalCapacity
How much energy is required to make this fluid change it's temperature.FluidAmount
FluidKey. viscosity
How 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 FluidAmount
FluidVolume. amount()
An alternate name forFluidVolume.getAmount_F()
.FluidAmount
FluidVolume. 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 FluidAmount
FluidVolume. getRawAmount_F()
static FluidAmount
FluidVolume. 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 void
WeightedFluidVolume. addAmount(T value, FluidAmount amount)
void
WeightedFluidVolume. addAmount(T value, FluidAmount amount, FluidAmount.FluidMergeRounding rounding)
void
FluidVolume. addFullTooltip(FluidAmount capacity, FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)
Adds the complete tooltip for thisFluidVolume
to the given tooltip.void
FluidVolume. addFullTooltip(FluidAmount capacity, java.util.List<net.minecraft.text.Text> tooltip)
Adds the complete tooltip for thisFluidVolume
to the given tooltip.void
FluidVolume. addTooltipNameAmount(FluidAmount capacity, FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)
Adds the name and amount to the given tooltip.protected ColouredFluidVolume
ColouredFluidKey. createFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount)
protected FluidVolume
FluidKey. createFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount)
Creates a newFluidVolume
and reads it from the buffer withFluidVolume.fromMcBufferInternal(PacketByteBuf)
.net.minecraft.text.Text
FluidUnit. getAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getAmount(FluidAmount amount)
net.minecraft.text.Text
FluidUnitBase. getAmount(FluidAmount amount, boolean forceSingular)
net.minecraft.text.Text
FluidUnitBase. getAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName)
abstract net.minecraft.text.Text
FluidUnitBase. getAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getAmount(FluidAmount amount, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getAmount(FluidAmount amount, net.minecraft.text.Text fluidName)
net.minecraft.text.Text
FluidUnitBase. getAmount(FluidAmount amount, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitSet. getAmount(FluidAmount amount, boolean forceLastSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnit. getEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getEmptyTank(FluidAmount capacity)
abstract net.minecraft.text.Text
FluidUnitBase. getEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitSet. getEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnit. getFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getFlowRate(FluidAmount amountPerTick)
net.minecraft.text.Text
FluidUnitBase. getFlowRate(FluidAmount amountPerTick, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName)
abstract net.minecraft.text.Text
FluidUnitBase. getFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitSet. getFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnit. getFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getFullTank(FluidAmount capacity)
net.minecraft.text.Text
FluidUnitBase. getFullTank(FluidAmount capacity, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName)
abstract net.minecraft.text.Text
FluidUnitBase. getFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitSet. 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.Text
FluidUnit. getPartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getPartialTank(FluidAmount amount, FluidAmount capacity)
net.minecraft.text.Text
FluidUnitBase. getPartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getPartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)
abstract net.minecraft.text.Text
FluidUnitBase. getPartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitSet. getPartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getTank(FluidAmount amount, FluidAmount capacity)
net.minecraft.text.Text
FluidUnitBase. getTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)
net.minecraft.text.Text
FluidUnitBase. getTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)
net.minecraft.text.Text
FluidUnitBase. getTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnit. localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeAmount(FluidAmount amount)
java.lang.String
FluidUnitBase. localizeAmount(FluidAmount amount, boolean forceSingular)
java.lang.String
FluidUnitBase. localizeAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName)
abstract java.lang.String
FluidUnitBase. localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeAmount(FluidAmount amount, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeAmount(FluidAmount amount, net.minecraft.text.Text fluidName)
java.lang.String
FluidUnitBase. localizeAmount(FluidAmount amount, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnitSet. localizeAmount(FluidAmount amount, boolean forceLastSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnit. localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeEmptyTank(FluidAmount capacity)
abstract java.lang.String
FluidUnitBase. localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
FluidUnitSet. localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
FluidUnit. localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeFlowRate(FluidAmount amountPerTick)
java.lang.String
FluidUnitBase. localizeFlowRate(FluidAmount amountPerTick, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName)
abstract java.lang.String
FluidUnitBase. localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnitSet. localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnit. localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeFullTank(FluidAmount capacity)
java.lang.String
FluidUnitBase. localizeFullTank(FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName)
abstract java.lang.String
FluidUnitBase. localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnitSet. localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidVolume. localizeInTank(FluidAmount capacity)
java.lang.String
FluidVolume. localizeInTank(FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
FluidUnit. localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizePartialTank(FluidAmount amount, FluidAmount capacity)
java.lang.String
FluidUnitBase. localizePartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)
abstract java.lang.String
FluidUnitBase. localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnitSet. localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeTank(FluidAmount amount, FluidAmount capacity)
java.lang.String
FluidUnitBase. localizeTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
FluidUnitBase. localizeTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)
java.lang.String
FluidUnitBase. localizeTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
protected abstract T
FluidProperty. merge(FluidVolume volumeA, FluidVolume volumeB, FluidAmount amount, T valueA, T valueB)
Merges two values together, using the twoFluidVolume
s for context.protected void
FluidVolume. setAmount(FluidAmount newAmount)
Protected to allow the implementation ofFluidVolume.split(FluidAmount)
andFluidVolume.merge0(FluidVolume, FluidMergeRounding)
to set the amount.FluidKey.FluidKeyBuilder
FluidKey.FluidKeyBuilder. setCohesion(FluidAmount to)
Sets theFluidKey.cohesion
property to the givenFluidAmount
, or null to use the default value.FluidKey.FluidKeyBuilder
FluidKey.FluidKeyBuilder. setDensity(FluidAmount to)
Sets theFluidKey.density
property to the givenFluidAmount
, or null to use the default value.FluidKey.FluidKeyBuilder
FluidKey.FluidKeyBuilder. setNetherCohesion(FluidAmount to)
Sets theFluidKey.netherCohesion
property to the givenFluidAmount
, or null to use the default value.FluidKey.FluidKeyBuilder
FluidKey.FluidKeyBuilder. setNetherViscosity(FluidAmount to)
Sets theFluidKey.netherViscosity
property to the givenFluidAmount
, or null to use the default value.FluidKey.FluidKeyBuilder
FluidKey.FluidKeyBuilder. setThermalCapacity(FluidAmount to)
Sets theFluidKey.thermalCapacity
property to the givenFluidAmount
, or null to use the default value.FluidKey.FluidKeyBuilder
FluidKey.FluidKeyBuilder. setViscosity(FluidAmount to)
Sets theFluidKey.viscosity
property to the givenFluidAmount
, or null to use the default value.FluidVolume
FluidVolume. 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 returnedFluidVolume
will have an amount equal to this amount, and not the amount given.FluidVolume
FluidVolume. 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 returnedFluidVolume
will have an amount equal to this amount, and not the amount given.protected FluidVolume
ColouredFluidVolume. split0(FluidAmount toTake, java.math.RoundingMode rounding)
protected FluidVolume
FluidVolume. split0(FluidAmount toTake, java.math.RoundingMode rounding)
protected WeightedFluidVolume<T>
WeightedFluidVolume. split0(FluidAmount toTake, java.math.RoundingMode rounding)
BiomeSourcedFluidVolume
BiomeSourcedFluidKey. withAmount(FluidAmount amount)
BiomeSourcedFluidVolume
BiomeSourcedFluidKey. withAmount(net.minecraft.world.biome.Biome source, FluidAmount amount)
ColouredFluidVolume
ColouredFluidKey. withAmount(FluidAmount amount)
FluidVolume
FluidKey. withAmount(FluidAmount amount)
FluidVolume
FluidVolume. withAmount(FluidAmount newAmount)
Creates a copy of this fluid with the given amount.NormalFluidVolume
NormalFluidKey. withAmount(FluidAmount amount)
Deprecated.PotionFluidVolume
PotionFluidKey. withAmount(FluidAmount amount)
FluidVolume
SimpleFluidKey. 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 void
WeightedFluidVolume. addAmounts(java.util.Map<T,FluidAmount> sources)
protected void
WeightedFluidVolume. readValuesFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, java.util.Map<T,FluidAmount> map)
protected void
WeightedFluidVolume. 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)