Uses of Interface
alexiil.mc.lib.attributes.fluid.FluidTransferable
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 |
-
Uses of FluidTransferable in alexiil.mc.lib.attributes.fluid
Subinterfaces of FluidTransferable in alexiil.mc.lib.attributes.fluid Modifier and Type Interface Description interface
GroupedFluidInv
A modifiable version ofGroupedFluidInvView
, except that all modification methods are provided byFluidExtractable
andFluidInsertable
.interface
LimitedGroupedFluidInv
Classes in alexiil.mc.lib.attributes.fluid that implement FluidTransferable Modifier and Type Class Description class
SingleFluidTank
A delegating accessor of a single slot in aFixedFluidInv
.Methods in alexiil.mc.lib.attributes.fluid that return FluidTransferable Modifier and Type Method Description default FluidTransferable
FluidTransferable. filtered(FluidFilter filter)
static FluidTransferable
FluidTransferable. from(FluidExtractable extractable)
static FluidTransferable
FluidTransferable. from(FluidInsertable insertable)
static FluidTransferable
FluidTransferable. from(FluidInsertable insertable, FluidExtractable extractable)
default FluidTransferable
FixedFluidInv. getTransferable()
Methods in alexiil.mc.lib.attributes.fluid with parameters of type FluidTransferable Modifier and Type Method Description static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactCursorWithTank(FluidTransferable inv, net.minecraft.server.network.ServerPlayerEntity player)
This is the "interactCursorWithTank" variant that takes a singleFluidTransferable
and doesn't limit what fluid is moved, or how much fluid is moved.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)
This is the "interactCursorWithTank" variant that takes a singleFluidTransferable
and doesn't limit the maximum amount of fluid 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 boolean
FluidVolumeUtil. interactCursorWithTank(FluidTransferable inv, net.minecraft.server.network.ServerPlayerEntity player)
Deprecated.The boolean return has been deprecated, and the main method has been moved toFluidInvUtil.interactCursorWithTank(FluidTransferable, ServerPlayerEntity)
static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactHandWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand)
This is the "interactHandWithTank" variant that takes a singleFluidTransferable
and doesn't limit what fluid is moved, or how much fluid is moved.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)
This is the "interactHandWithTank" variant that takes a singleFluidTransferable
and doesn't limit the maximum amount of fluid 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(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
This is the "interactItemWithTank" variant that uses a singleFluidTransferable
for the insertable/extractable tanks, and doesn't limit what fluid is moved, or how much is moved.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)
This is the "interactItemWithTank" variant that uses a singleFluidTransferable
for the insertable/extractable tanks, and doesn't limit the amount 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(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack)
This is the "interactWithTank" variant that takes a singleFluidTransferable
, and doesn't limit what fluid is moved, or the amount of fluid moved.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)
This is the "interactWithTank" variant that takes a singleFluidTransferable
, and doesn't limit the amount of fluid 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
.static FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil. interactWithTank(FluidTransferable inv, Ref<net.minecraft.item.ItemStack> stack, java.util.function.Consumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated.This has been replaced byFluidInvUtil.interactItemWithTank(FluidTransferable, Reference, LimitedConsumer)
.static FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil. interactWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated.UseFluidInvUtil.interactItemWithTank(FluidTransferable, Reference, LimitedConsumer)
instead: all interactWithTank methods have been moved toFluidInvUtil
.static boolean
FluidVolumeUtil. interactWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand)
Deprecated.The boolean return has been deprecated, and the main method has been moved toFluidInvUtil.interactHandWithTank(FluidTransferable, PlayerEntity, Hand)
-
Uses of FluidTransferable in alexiil.mc.lib.attributes.fluid.impl
Methods in alexiil.mc.lib.attributes.fluid.impl that return FluidTransferable Modifier and Type Method Description FluidTransferable
FilteredFluidTransferable. filtered(FluidFilter filter)
FluidTransferable
EmptyFixedFluidInv. getTransferable()
Constructors in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidTransferable Constructor Description FilteredFluidTransferable(FluidTransferable real, FluidFilter filter)
-
Uses of FluidTransferable in alexiil.mc.lib.attributes.fluid.item
Classes in alexiil.mc.lib.attributes.fluid.item that implement FluidTransferable Modifier and Type Class Description class
ItemBasedSingleFluidInv
An abstractGroupedFluidInv
for anAbstractItemBasedAttribute
which only ever contains a single fluid, and can contain any amount of said fluid between 0 and it's capacity.