Uses of Class
alexiil.mc.lib.attributes.fluid.volume.FluidVolume
Package
Description
The base package for
fluid
management.-
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid
Modifier and TypeFieldDescriptionstatic final FluidVolume
FluidVolumeUtil.EMPTY
final FluidVolume
FluidVolumeUtil.FluidTankInteraction.fluidMoved
A copy of the fluid moved.final FluidVolume
FluidVolumeUtil.FluidTransferResult.inTank
TheFluidVolume
that should be placed into the tankfinal FluidVolume
FluidVolumeUtil.FluidTransferResult.result
If this is returned fromFluidVolumeUtil.computeInsertion(FluidVolume, FluidAmount, FluidVolume)
then this is the leftover.Modifier and TypeMethodDescriptiondefault FluidVolume
FluidExtractable.attemptAnyExtraction
(int maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.default FluidVolume
FluidExtractable.attemptAnyExtraction
(FluidAmount maxAmount, Simulation simulation) default FluidVolume
FluidExtractable.attemptExtraction
(FluidFilter filter, int maxAmount, Simulation simulation) Deprecated.default FluidVolume
FluidExtractable.attemptExtraction
(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) SingleFluidTank.attemptExtraction
(FluidFilter filter, int maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.SingleFluidTank.attemptExtraction
(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) FluidInsertable.attemptInsertion
(FluidVolume fluid, Simulation simulation) Inserts the given stack into this insertable, and returns the excess.SingleFluidTank.attemptInsertion
(FluidVolume fluid, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.This has been replaced byFluidAttributes.EXTRACTABLE
.default FluidVolume
FluidExtractable.extract
(int maxAmount) Deprecated, for removal: This API element is subject to removal in a future version.Replaced byFluidExtractable.extract(FluidAmount)
default FluidVolume
FluidExtractable.extract
(FluidAmount maxAmount) Attempt to extract *any*FluidVolume
from this.default FluidVolume
FluidExtractable.extract
(FluidFilter filter, int maxAmount) Deprecated, for removal: This API element is subject to removal in a future version.Replaced byFluidExtractable.extract(FluidFilter, FluidAmount)
.default FluidVolume
FluidExtractable.extract
(FluidFilter filter, FluidAmount maxAmount) default FluidVolume
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byFluidExtractable.extract(FluidKey, FluidAmount)
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, int maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolume
FluidVolumeUtil.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.final FluidVolume
SingleFluidTankView.get()
static FluidVolume
FluidContainerRegistry.getContainedFluid
(net.minecraft.item.Item item) Retrieves theFluidVolume
contained by the givenItem
, if the item has been registered directly withFluidContainerRegistry.mapContainer(Item, Item, FluidVolume)
.FixedFluidInvView.getInvFluid
(int tank) FluidContainerRegistry.FluidFillFunction.insert
(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn) protected abstract FluidVolume
FluidContainerRegistry.FluidFillHandler.insert
(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn) default FluidVolume
FluidInsertable.insert
(FluidVolume fluid) Inserts the given stack into this insertable, and returns the excess.default FluidVolume
FixedFluidInv.insertFluid
(int tank, FluidVolume volume, Simulation simulation) Attempts to insert the given fluid volume into the given tank, returning the excess.static FluidVolume
FluidVolumeUtil.insertSingle
(FixedFluidInv inv, int tank, FluidVolume toInsert, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.As this has been moved toFixedFluidInv.insertFluid(int, FluidVolume, Simulation)
static FluidVolume
FluidVolumeUtil.move
(FluidExtractable from, FluidInsertable to) Attempts to move as much fluid as possible from theFluidExtractable
to theFluidInsertable
.static FluidVolume
FluidVolumeUtil.move
(FluidExtractable from, FluidInsertable to, int maximum) Deprecated, for removal: This API element is subject to removal in a future version.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) 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, int maximum) Deprecated, for removal: This API element is subject to removal in a future version.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
.static FluidVolume
FluidVolumeUtil.move
(FluidExtractable from, FluidInsertable to, FluidFilter filter, Simulation simulation) 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, Simulation simulation) Attempts to move as much fluid as possible from theFluidExtractable
to theFluidInsertable
.Modifier and TypeMethodDescriptiondefault Iterable<FluidVolume>
FixedFluidInvView.fluidIterable()
Modifier and TypeMethodDescriptionFluidInsertable.attemptInsertion
(FluidVolume fluid, Simulation simulation) Inserts the given stack into this insertable, and returns the excess.SingleFluidTank.attemptInsertion
(FluidVolume fluid, 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 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, int maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolume
FluidVolumeUtil.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.final void
SingleFluidTank.forceSet
(FluidVolume to) Sets the stack in the given slot to the given stack, or throws an exception if it was not permitted.default void
FixedFluidInv.forceSetInvFluid
(int slot, FluidVolume to) Sets the stack in the given slot to the given stack, or throws an exception if it was not permitted.FluidVolumeUtil.FluidTankInteraction.fromTank
(FluidVolume fluid) Deprecated, for removal: This API element is subject to removal in a future version.FluidContainerRegistry.FluidFillFunction.insert
(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn) protected abstract FluidVolume
FluidContainerRegistry.FluidFillHandler.insert
(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn) default FluidVolume
FluidInsertable.insert
(FluidVolume fluid) Inserts the given stack into this insertable, and returns the excess.default FluidVolume
FixedFluidInv.insertFluid
(int tank, FluidVolume volume, Simulation simulation) Attempts to insert the given fluid volume into the given tank, returning the excess.static FluidVolume
FluidVolumeUtil.insertSingle
(FixedFluidInv inv, int tank, FluidVolume toInsert, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.As this has been moved toFixedFluidInv.insertFluid(int, FluidVolume, Simulation)
FluidVolumeUtil.FluidTankInteraction.intoTank
(FluidVolume fluid) Deprecated, for removal: This API element is subject to removal in a future version.boolean
SingleFluidTank.isValid
(FluidVolume value) static void
FluidContainerRegistry.mapContainer
(net.minecraft.item.Item empty, net.minecraft.item.Item full, FluidVolume fluid) Directly maps a givenItem
as containing the given fluid, with anotherItem
as the empty container.default boolean
FluidInsertable.offer
(FluidVolume object) Deprecated.This is an override forLimitedConsumer
, for the full javadoc you probably want to callFluidInsertable.insert(FluidVolume)
directly.default boolean
FluidInsertable.offer
(FluidVolume fluid, Simulation simulation) Deprecated.This is an override forLimitedConsumer
, for the full javadoc you probably want to callFluidInsertable.attemptInsertion(FluidVolume, Simulation)
directly.void
FluidInvTankChangeListener.onChange
(FixedFluidInvView inv, int tank, FluidVolume previous, FluidVolume current) boolean
SingleFluidTank.set
(FluidVolume value) final boolean
SingleFluidTank.set
(FluidVolume to, Simulation simulation) boolean
FixedFluidInv.setInvFluid
(int tank, FluidVolume to, Simulation simulation) Sets the fluid in the given tank to the given fluid.default boolean
FluidInsertable.wouldAccept
(FluidVolume object) Deprecated.This is an override forLimitedConsumer
, for the full javadoc you probably want to callattemptInsertion
(FluidVolume, Simulation.SIMULATE) directly.Modifier and TypeMethodDescriptionfinal void
SingleFluidTank.modify
(Function<FluidVolume, FluidVolume> function) Applies the given function to the stack held in the slot, and usesSingleFluidTank.forceSet(FluidVolume)
on the result (Which will throw an exception if the returned stack is not valid for this tank).final void
SingleFluidTank.modify
(Function<FluidVolume, FluidVolume> function) Applies the given function to the stack held in the slot, and usesSingleFluidTank.forceSet(FluidVolume)
on the result (Which will throw an exception if the returned stack is not valid for this tank).default void
FixedFluidInv.modifyTank
(int tank, Function<FluidVolume, FluidVolume> function) Applies the given function to the stack held in the slot, and usesFixedFluidInv.forceSetInvFluid(int, FluidVolume)
on the result (Which will throw an exception if the returned stack is not valid for this inventory).default void
FixedFluidInv.modifyTank
(int tank, Function<FluidVolume, FluidVolume> function) Applies the given function to the stack held in the slot, and usesFixedFluidInv.forceSetInvFluid(int, FluidVolume)
on the result (Which will throw an exception if the returned stack is not valid for this inventory).ModifierConstructorDescriptionFluidTankInteraction
(FluidVolume fluidMoved, boolean intoTank) Deprecated, for removal: This API element is subject to removal in a future version.FluidTankInteraction
(FluidVolume fluidMoved, boolean intoTank, FluidVolumeUtil.ItemContainerStatus intoTankStatus, FluidVolumeUtil.ItemContainerStatus fromTankStatus) Constructs a newFluidVolumeUtil.FluidTankInteraction
object.FluidTransferResult
(FluidVolume result, FluidVolume inTank) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.impl
Modifier and TypeFieldDescriptionprotected final net.minecraft.util.collection.DefaultedList<FluidVolume>
SimpleFixedFluidInv.tanks
Modifier 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, int maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.EmptyFluidExtractable.attemptExtraction
(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) EmptyFluidTransferable.attemptExtraction
(FluidFilter filter, int maxAmount, Simulation simulation) EmptyGroupedFluidInv.attemptExtraction
(FluidFilter filter, int 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) CombinedFluidInsertable.attemptInsertion
(FluidVolume stack, Simulation simulation) CombinedGroupedFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) DelegatingGroupedFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) EmptyFluidTransferable.attemptInsertion
(FluidVolume fluid, Simulation simulation) EmptyGroupedFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) FilteredFluidInsertable.attemptInsertion
(FluidVolume fluid, Simulation simulation) FilteredFluidTransferable.attemptInsertion
(FluidVolume fluid, Simulation simulation) GroupedFluidInvFixedWrapper.attemptInsertion
(FluidVolume fluid, Simulation simulation) RejectingFluidInsertable.attemptInsertion
(FluidVolume stack, Simulation simulation) SimpleFixedFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) SimpleFixedFluidInvInsertable.attemptInsertion
(FluidVolume fluid, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedGroupedFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) AbstractPartialFixedFluidInvView.getInvFluid
(int tank) CombinedFixedFluidInvView.getInvFluid
(int tank) DelegatingFixedFluidInv.getInvFluid
(int tank) EmptyFixedFluidInv.getInvFluid
(int tank) SimpleFixedFluidInv.getInvFluid
(int tank) Modifier and TypeMethodDescriptionCombinedFluidInsertable.attemptInsertion
(FluidVolume stack, Simulation simulation) CombinedGroupedFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) DelegatingGroupedFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) EmptyFluidTransferable.attemptInsertion
(FluidVolume fluid, Simulation simulation) EmptyGroupedFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) FilteredFluidInsertable.attemptInsertion
(FluidVolume fluid, Simulation simulation) FilteredFluidTransferable.attemptInsertion
(FluidVolume fluid, Simulation simulation) GroupedFluidInvFixedWrapper.attemptInsertion
(FluidVolume fluid, Simulation simulation) RejectingFluidInsertable.attemptInsertion
(FluidVolume stack, Simulation simulation) SimpleFixedFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) SimpleFixedFluidInvInsertable.attemptInsertion
(FluidVolume fluid, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedGroupedFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) protected final void
SimpleFixedFluidInv.fireTankChange
(int tank, FluidVolume previous, FluidVolume current) boolean
CombinedFixedFluidInv.setInvFluid
(int tank, FluidVolume to, Simulation simulation) boolean
DelegatingFixedFluidInv.setInvFluid
(int tank, FluidVolume to, Simulation simulation) boolean
EmptyFixedFluidInv.setInvFluid
(int tank, FluidVolume to, Simulation simulation) boolean
MappedFixedFluidInv.setInvFluid
(int tank, FluidVolume to, Simulation simulation) boolean
SimpleFixedFluidInv.setInvFluid
(int tank, FluidVolume to, Simulation simulation) boolean
SimpleLimitedFixedFluidInv.setInvFluid
(int tank, FluidVolume to, Simulation simulation) boolean
SubFixedFluidInv.setInvFluid
(int tank, FluidVolume to, Simulation simulation) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.item
Modifier and TypeMethodDescriptionItemBasedSingleFluidInv.attemptExtraction
(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) ItemBasedSingleFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) Modifier and TypeMethodDescriptionItemBasedSingleFluidInv.attemptInsertion
(FluidVolume fluid, Simulation simulation) protected abstract net.minecraft.item.ItemStack
ItemBasedSingleFluidInv.writeToStack
(net.minecraft.item.ItemStack stack, FluidVolume fluid) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.render
Modifier and TypeMethodDescriptionprotected static net.minecraft.client.render.RenderLayer
FluidVolumeRenderer.getRenderLayer
(FluidVolume fluid) protected static net.minecraft.client.texture.Sprite[]
FluidVolumeRenderer.getSprites
(FluidVolume fluid) void
DefaultFluidVolumeRenderer.render
(FluidVolume fluid, List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices) void
EnchantmentGlintFluidRenderer.render
(FluidVolume fluid, List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices) abstract void
FluidVolumeRenderer.render
(FluidVolume fluid, List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices) Renders a list of faces of the given fluid at the specified co-ordinates.void
ImplicitVanillaFluidVolumeRenderer.render
(FluidVolume fluid, List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices) Deprecated, for removal: This API element is subject to removal in a future version.void
FluidVolumeRenderer.renderGuiRectangle
(FluidVolume fluid, double x0, double y0, double x1, double y1) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.volume
Modifier and TypeClassDescriptionclass
A fluid that changes it's makup based on theBiome
s that it is taken from.class
A fluid volume that stores it's colours as 4 floats: red, green, blue, and alpha.class
Deprecated, for removal: This API element is subject to removal in a future version.Because anyFluidKey
can map to a singleFluid
, andSimpleFluidVolume
has a much better name than this.final class
class
Simple implementation of aFluidVolume
that doesn't do anything special.class
Modifier and TypeFieldDescriptionstatic final com.google.gson.JsonDeserializer<FluidVolume>
FluidVolume.DESERIALIZER
Modifier and TypeMethodDescriptionfinal FluidVolume
FluidVolume.copy()
protected FluidVolume
FluidVolume.copy0()
static FluidVolume
Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolume
FluidVolume.create
(net.minecraft.fluid.Fluid fluid, int amount) Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolume
FluidVolume.create
(net.minecraft.potion.Potion potion, int amount) Deprecated, for removal: This API element is subject to removal in a future version.protected FluidVolume
FluidKey.createFromMcBuffer
(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount) Creates a newFluidVolume
and reads it from the buffer withfromMcBufferInternal(PacketByteBuf)
.static FluidVolume
FluidVolume.fromJson
(com.google.gson.JsonObject json) static FluidVolume
FluidVolume.fromMcBuffer
(net.minecraft.network.PacketByteBuf buffer) static FluidVolume
FluidVolume.fromTag
(net.minecraft.nbt.NbtCompound tag) BiomeSourcedFluidKey.fromWorld
(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos) FluidKey.fromWorld
(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos) Called when this is pumped out from the world.static FluidVolume
FluidVolume.merge
(FluidVolume a, FluidVolume b) static FluidVolume
FluidVolume.merge
(FluidVolume a, FluidVolume b, FluidAmount.FluidMergeRounding rounding) FluidVolume.multiplyAmount
(int by) Returns a newFluidVolume
that is a copy of this one, but with an amount multiplied by the given amount.FluidKey.readVolume
(com.google.gson.JsonObject json) abstract FluidVolume
FluidKey.readVolume
(net.minecraft.nbt.NbtCompound tag) final FluidVolume
FluidKey.readVolume
(net.minecraft.network.PacketByteBuf buffer) Reads aFluidVolume
from thePacketByteBuf
.SimpleFluidKey.readVolume
(com.google.gson.JsonObject json) SimpleFluidKey.readVolume
(net.minecraft.nbt.NbtCompound tag) final FluidVolume
FluidVolume.split
(int toRemove) Deprecated, for removal: This API element is subject to removal in a future version.Replaced bysplit(FluidAmount)
final 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.final FluidVolume
FluidVolume.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 returnedFluidVolume
will have an amount equal to this amount, and not the amount given.protected FluidVolume
ColouredFluidVolume.split0
(FluidAmount toTake, RoundingMode rounding) protected FluidVolume
FluidVolume.split0
(FluidAmount toTake, RoundingMode rounding) FluidKey.withAmount
(int amount) Deprecated, for removal: This API element is subject to removal in a future version.FluidKey.withAmount
(FluidAmount amount) FluidVolume.withAmount
(FluidAmount newAmount) Creates a copy of this fluid with the given amount.SimpleFluidKey.withAmount
(FluidAmount amount) Modifier and TypeMethodDescriptiondefault void
FluidTemperature.addTemperatureToTooltip
(FluidVolume fluid, FluidTooltipContext context, List<net.minecraft.text.Text> tooltip) void
FluidProperty.addTooltipExtras
(FluidVolume fluid, FluidTooltipContext context, List<net.minecraft.text.Text> tooltip) Adds tooltip extras for this fluid property when getting the tooltip for a fullFluidVolume
.static boolean
FluidVolume.areEqualExceptAmounts
(FluidVolume a, FluidVolume b) static boolean
FluidVolume.areFullyEqual
(FluidVolume a, FluidVolume b) Deprecated, for removal: This API element is subject to removal in a future version.UseObject.equals(Object)
instead of this.final boolean
FluidVolume.canMerge
(FluidVolume with) Checks to see if the givenFluidVolume
can merge into this one.final T
FluidProperty.get
(FluidVolume volume) Helper method to obtain this property from the given fluid.double
FluidTemperature.ContinuousFluidTemperature.getTemperature
(FluidVolume fluid) default double
FluidTemperature.DiscreteFluidTemperature.getTemperature
(FluidVolume fluid) double
FluidTemperature.getTemperature
(FluidVolume fluid) 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.final boolean
FluidVolume.merge
(FluidVolume other, FluidAmount.FluidMergeRounding rounding, Simulation simulation) static FluidVolume
FluidVolume.merge
(FluidVolume a, FluidVolume b) static FluidVolume
FluidVolume.merge
(FluidVolume a, FluidVolume b, FluidAmount.FluidMergeRounding rounding) final boolean
FluidVolume.merge
(FluidVolume other, Simulation simulation) protected void
FluidVolume.merge0
(FluidVolume other, FluidAmount.FluidMergeRounding rounding) Deprecated, for removal: This API element is subject to removal in a future version.becausemergeInternal(FluidVolume, FluidMergeResult)
allows every method to share the sameFluidAmount.FluidMergeResult
object, which reduces the chance to make a mistake when merging the two amounts.protected void
ColouredFluidVolume.mergeInternal
(FluidVolume other, FluidAmount.FluidMergeResult mergedAmounts) protected void
FluidVolume.mergeInternal
(FluidVolume other, FluidAmount.FluidMergeResult mergedAmounts) Actually merges twoFluidVolume
's together.protected void
WeightedFluidVolume.mergeInternal
(FluidVolume vol, FluidAmount.FluidMergeResult result) static boolean
FluidVolume.mergeInto
(FluidVolume source, FluidVolume target) Merges as much fluid as possible from the source into the target, leaving the result in thestatic boolean
FluidVolume.mergeInto
(FluidVolume source, FluidVolume target, FluidAmount.FluidMergeRounding rounding) Merges as much fluid as possible from the source into the target, leaving the result in thestatic boolean
FluidVolume.mergeInto
(FluidVolume source, FluidVolume target, FluidAmount.FluidMergeRounding rounding, Simulation simulation) Merges as much fluid as possible from the source into the target, leaving the result in the source.final void
FluidProperty.set
(FluidVolume volume, T value) Helper method to set a value for this property to the given fluid. -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.world
Modifier and TypeMethodDescriptionstatic FluidVolume
FluidWorldUtil.drain
(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, Simulation simulation) Attempts to drain the given block of it's fluid.static FluidVolume
FluidWorldUtil.fill
(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, FluidVolume volume, Simulation simulation) Attempts to place the given fluid volume into the given block position.IFluidVolumeDrainable.tryDrainFluid
(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, Simulation simulation) Modifier and TypeMethodDescriptionstatic FluidVolume
FluidWorldUtil.fill
(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, FluidVolume volume, Simulation simulation) Attempts to place the given fluid volume into the given block position.
FluidExtractable.attemptAnyExtraction(FluidAmount, Simulation)