Uses of Class
alexiil.mc.lib.attributes.fluid.volume.FluidVolume
Package | Description |
---|---|
alexiil.mc.lib.attributes.fluid |
The base package for
fluid management. |
alexiil.mc.lib.attributes.fluid.impl | |
alexiil.mc.lib.attributes.fluid.item | |
alexiil.mc.lib.attributes.fluid.render | |
alexiil.mc.lib.attributes.fluid.volume | |
alexiil.mc.lib.attributes.fluid.world |
-
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid
Fields in alexiil.mc.lib.attributes.fluid declared as FluidVolume Modifier and Type Field Description static FluidVolume
FluidVolumeUtil. EMPTY
FluidVolume
FluidVolumeUtil.FluidTankInteraction. fluidMoved
A copy of the fluid moved.FluidVolume
FluidVolumeUtil.FluidTransferResult. inTank
TheFluidVolume
that should be placed into the tankFluidVolume
FluidVolumeUtil.FluidTransferResult. result
If this is returned fromFluidVolumeUtil.computeInsertion(FluidVolume, FluidAmount, FluidVolume)
then this is the leftover.Methods in alexiil.mc.lib.attributes.fluid that return FluidVolume Modifier and Type Method Description default FluidVolume
FluidExtractable. attemptAnyExtraction(int maxAmount, Simulation simulation)
Deprecated.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)
FluidVolume
SingleFluidTank. attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
Deprecated.FluidVolume
SingleFluidTank. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
FluidInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)
Inserts the given stack into this insertable, and returns the excess.FluidVolume
SingleFluidTank. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
FluidProviderItem. drain(Ref<net.minecraft.item.ItemStack> stack)
Deprecated.This has been replaced byFluidAttributes.EXTRACTABLE
.default FluidVolume
FluidExtractable. extract(int maxAmount)
Deprecated.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.Replaced byFluidExtractable.extract(FluidFilter, FluidAmount)
.default FluidVolume
FluidExtractable. extract(FluidFilter filter, FluidAmount maxAmount)
default FluidVolume
FluidExtractable. extract(FluidKey filter, int maxAmount)
Deprecated.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)
static FluidVolume
FluidVolumeUtil. extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount, Simulation simulation)
Deprecated.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)
.FluidVolume
FixedFluidInvView. getInvFluid(int tank)
FluidVolume
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.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.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.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
.Methods in alexiil.mc.lib.attributes.fluid that return types with arguments of type FluidVolume Modifier and Type Method Description default java.lang.Iterable<FluidVolume>
FixedFluidInvView. fluidIterable()
Methods in alexiil.mc.lib.attributes.fluid with parameters of type FluidVolume Modifier and Type Method Description FluidVolume
FluidInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)
Inserts the given stack into this insertable, and returns the excess.FluidVolume
SingleFluidTank. attemptInsertion(FluidVolume fluid, 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
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)
static FluidVolume
FluidVolumeUtil. extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount, Simulation simulation)
Deprecated.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.static FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil.FluidTankInteraction. fromTank(FluidVolume fluid)
Deprecated.FluidVolume
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.As this has been moved toFixedFluidInv.insertFluid(int, FluidVolume, Simulation)
static FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil.FluidTankInteraction. intoTank(FluidVolume fluid)
Deprecated.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)
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.Method parameters in alexiil.mc.lib.attributes.fluid with type arguments of type FluidVolume Modifier and Type Method Description void
SingleFluidTank. modify(java.util.function.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).void
SingleFluidTank. modify(java.util.function.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, java.util.function.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, java.util.function.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).Constructors in alexiil.mc.lib.attributes.fluid with parameters of type FluidVolume Constructor Description FluidTankInteraction(FluidVolume fluidMoved, boolean intoTank)
Deprecated.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
Fields in alexiil.mc.lib.attributes.fluid.impl with type parameters of type FluidVolume Modifier and Type Field Description protected net.minecraft.util.collection.DefaultedList<FluidVolume>
SimpleFixedFluidInv. tanks
Methods in alexiil.mc.lib.attributes.fluid.impl that return FluidVolume 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, int maxAmount, Simulation simulation)
Deprecated.FluidVolume
EmptyFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
EmptyFluidTransferable. attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
FluidVolume
EmptyGroupedFluidInv. attemptExtraction(FluidFilter filter, int 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)
FluidVolume
CombinedFluidInsertable. attemptInsertion(FluidVolume stack, Simulation simulation)
FluidVolume
CombinedGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
DelegatingGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
EmptyFluidTransferable. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
EmptyGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
FilteredFluidInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
FilteredFluidTransferable. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
GroupedFluidInvFixedWrapper. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
RejectingFluidInsertable. attemptInsertion(FluidVolume stack, Simulation simulation)
FluidVolume
SimpleFixedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
SimpleFixedFluidInvInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)
Deprecated.FluidVolume
SimpleLimitedGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
AbstractPartialFixedFluidInvView. getInvFluid(int tank)
FluidVolume
CombinedFixedFluidInvView. getInvFluid(int tank)
FluidVolume
DelegatingFixedFluidInv. getInvFluid(int tank)
FluidVolume
EmptyFixedFluidInv. getInvFluid(int tank)
FluidVolume
SimpleFixedFluidInv. getInvFluid(int tank)
Methods in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidVolume Modifier and Type Method Description FluidVolume
CombinedFluidInsertable. attemptInsertion(FluidVolume stack, Simulation simulation)
FluidVolume
CombinedGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
DelegatingGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
EmptyFluidTransferable. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
EmptyGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
FilteredFluidInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
FilteredFluidTransferable. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
GroupedFluidInvFixedWrapper. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
RejectingFluidInsertable. attemptInsertion(FluidVolume stack, Simulation simulation)
FluidVolume
SimpleFixedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
FluidVolume
SimpleFixedFluidInvInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)
Deprecated.FluidVolume
SimpleLimitedGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
protected 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
Fields in alexiil.mc.lib.attributes.fluid.item declared as FluidVolume Modifier and Type Field Description FluidVolume
ItemBasedSingleFluidInv.HeldFluidInfo. fluid
Methods in alexiil.mc.lib.attributes.fluid.item that return FluidVolume Modifier and Type Method Description FluidVolume
ItemBasedSingleFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolume
ItemBasedSingleFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
Methods in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidVolume Modifier and Type Method Description FluidVolume
ItemBasedSingleFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)
protected abstract net.minecraft.item.ItemStack
ItemBasedSingleFluidInv. writeToStack(net.minecraft.item.ItemStack stack, FluidVolume fluid)
Constructors in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidVolume Constructor Description HeldFluidInfo(FluidVolume fluid, FluidAmount capacity)
-
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.render
Methods in alexiil.mc.lib.attributes.fluid.render with parameters of type FluidVolume Modifier and Type Method Description protected 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, java.util.List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices)
void
EnchantmentGlintFluidRenderer. render(FluidVolume fluid, java.util.List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices)
abstract void
FluidVolumeRenderer. render(FluidVolume fluid, java.util.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, java.util.List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices)
Deprecated.void
FluidVolumeRenderer. renderGuiRectangle(FluidVolume fluid, double x0, double y0, double x1, double y1)
-
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.volume
Subclasses of FluidVolume in alexiil.mc.lib.attributes.fluid.volume Modifier and Type Class Description class
BiomeSourcedFluidVolume
A fluid that changes it's makup based on theBiome
s that it is taken from.class
ColouredFluidVolume
A fluid volume that stores it's colours as 4 floats: red, green, blue, and alpha.class
NormalFluidVolume
Deprecated.Because anyFluidKey
can map to a singleFluid
, andSimpleFluidVolume
has a much better name than this.class
PotionFluidVolume
class
SimpleFluidVolume
Simple implementation of aFluidVolume
that doesn't do anything special.class
WeightedFluidVolume<T>
Fields in alexiil.mc.lib.attributes.fluid.volume with type parameters of type FluidVolume Modifier and Type Field Description static com.google.gson.JsonDeserializer<FluidVolume>
FluidVolume. DESERIALIZER
Methods in alexiil.mc.lib.attributes.fluid.volume that return FluidVolume Modifier and Type Method Description FluidVolume
FluidVolume. copy()
protected FluidVolume
FluidVolume. copy0()
static FluidVolume
FluidVolume. create(FluidKey fluid, int amount)
Deprecated.static FluidVolume
FluidVolume. create(net.minecraft.fluid.Fluid fluid, int amount)
Deprecated.static FluidVolume
FluidVolume. create(net.minecraft.potion.Potion potion, int amount)
Deprecated.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.CompoundTag tag)
FluidVolume
BiomeSourcedFluidKey. fromWorld(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos)
FluidVolume
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
FluidVolume. multiplyAmount(int by)
Returns a newFluidVolume
that is a copy of this one, but with an amount multiplied by the given amount.FluidVolume
FluidKey. readVolume(com.google.gson.JsonObject json)
abstract FluidVolume
FluidKey. readVolume(net.minecraft.nbt.CompoundTag tag)
FluidVolume
FluidKey. readVolume(net.minecraft.network.PacketByteBuf buffer)
Reads aFluidVolume
from thePacketByteBuf
.FluidVolume
SimpleFluidKey. readVolume(com.google.gson.JsonObject json)
FluidVolume
SimpleFluidKey. readVolume(net.minecraft.nbt.CompoundTag tag)
FluidVolume
FluidVolume. split(int toRemove)
Deprecated.Replaced bysplit(FluidAmount)
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)
FluidVolume
FluidKey. withAmount(int amount)
Deprecated.FluidVolume
FluidKey. withAmount(FluidAmount amount)
FluidVolume
FluidVolume. withAmount(FluidAmount newAmount)
Creates a copy of this fluid with the given amount.FluidVolume
SimpleFluidKey. withAmount(FluidAmount amount)
Methods in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidVolume Modifier and Type Method Description default void
FluidTemperature. addTemperatureToTooltip(FluidVolume fluid, FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)
void
FluidProperty. addTooltipExtras(FluidVolume fluid, FluidTooltipContext context, java.util.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.UseObject.equals(Object)
instead of this.boolean
FluidVolume. canMerge(FluidVolume with)
Checks to see if the givenFluidVolume
can merge into this one.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.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)
boolean
FluidVolume. merge(FluidVolume other, Simulation simulation)
protected void
FluidVolume. merge0(FluidVolume other, FluidAmount.FluidMergeRounding rounding)
Deprecated.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.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
Methods in alexiil.mc.lib.attributes.fluid.world that return FluidVolume Modifier and Type Method Description static 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.FluidVolume
IFluidVolumeDrainable. tryDrainFluid(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, Simulation simulation)
Methods in alexiil.mc.lib.attributes.fluid.world with parameters of type FluidVolume Modifier and Type Method Description 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.