Uses of Interface
alexiil.mc.lib.attributes.fluid.FixedFluidInv
Package
Description
The base package for
fluid
management.-
Uses of FixedFluidInv in alexiil.mc.lib.attributes.fluid
Modifier and TypeInterfaceDescriptioninterface
A type ofFixedFluidInv
that wraps an existingFixedFluidInv
and provides custom control over the actual modification of the wrappedFixedFluidInv
.Modifier and TypeFieldDescriptionstatic CombinableAttribute<FixedFluidInv>
FluidAttributes.FIXED_INV
Modifier and TypeMethodDescriptiondefault FixedFluidInv
LimitedFixedFluidInv.asUnmodifiable()
SingleFluidTank.getBackingInv()
default FixedFluidInv
FixedFluidInv.getMappedInv(int... tanks)
default FixedFluidInv
FixedFluidInv.getSubInv(int fromIndex, int toIndex)
Modifier and TypeMethodDescriptionstatic 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.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 toinsertFluid(int, FluidVolume, Simulation)
FluidInvUtil.interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player)
This is the "interactCursorWithTank" variant that takes a singleFixedFluidInv
and doesn't limit what fluid is moved, or how much fluid is moved.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.FluidInvUtil.interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter)
This is the "interactCursorWithTank" variant that takes a singleFixedFluidInv
and doesn't limit the maximum amount of fluid moved.FluidInvUtil.interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum)
This is the "interactCursorWithTank" variant that takes a singleFixedFluidInv
.static boolean
FluidVolumeUtil.interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player)
Deprecated, for removal: This API element is subject to removal in a future version.The boolean return has been deprecated, and the main method has been moved toFluidInvUtil.interactCursorWithTank(FixedFluidInv, ServerPlayerEntity)
FluidInvUtil.interactHandWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand)
This is the "interactHandWithTank" variant that takes a singleFixedFluidInv
and doesn't limit what fluid is moved, or how much fluid is moved.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.FluidInvUtil.interactHandWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter)
This is the "interactHandWithTank" variant that takes a singleFixedFluidInv
and doesn't limit the maximum amount of fluid moved.FluidInvUtil.interactHandWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter, FluidAmount maximum)
This is the "interactHandWithTank" variant that takes a singleFixedFluidInv
.FluidInvUtil.interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
This is the "interactItemWithTank" variant that uses a singleFixedFluidInv
for the insertable/extractable tanks, and doesn't limit the fluid moved, or the amount moved.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.FluidInvUtil.interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter)
This is the "interactItemWithTank" variant that uses a singleFixedFluidInv
for the insertable/extractable tanks, and doesn't limit the amount of fluid moved.FluidInvUtil.interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)
This is the "interactItemWithTank" variant that uses a singleFixedFluidInv
for the insertable/extractable tanks.FluidInvUtil.interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
, and doesn't limit what fluid is moved, or the amount of fluid moved.FluidInvUtil.interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidAmount maximum)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
, and doesn't limit what fluid is moved.FluidInvUtil.interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
, and doesn't limit the amount of fluid moved.FluidInvUtil.interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
.FluidVolumeUtil.interactWithTank(FixedFluidInv inv, Ref<net.minecraft.item.ItemStack> stack, Consumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated, for removal: This API element is subject to removal in a future version.This has been replaced byFluidInvUtil.interactItemWithTank(FixedFluidInv, Reference, LimitedConsumer)
.FluidVolumeUtil.interactWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated, for removal: This API element is subject to removal in a future version.UseFluidInvUtil.interactItemWithTank(FixedFluidInv, Reference, LimitedConsumer)
instead: all interactWithTank methods have been moved toFluidInvUtil
.static boolean
FluidVolumeUtil.interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand)
Deprecated, for removal: This API element is subject to removal in a future version.The boolean return has been deprecated, and the main method has been moved toFluidInvUtil.interactHandWithTank(FixedFluidInv, PlayerEntity, Hand)
-
Uses of FixedFluidInv in alexiil.mc.lib.attributes.fluid.impl
Modifier and TypeClassDescriptionclass
CombinedFixedFluidInv<InvType extends FixedFluidInv>
AnFixedFluidInv
that delegates to a list of them instead of storing items directly.Modifier and TypeClassDescriptionclass
CombinedFixedFluidInv<InvType extends FixedFluidInv>
AnFixedFluidInv
that delegates to a list of them instead of storing items directly.class
A simple delegate base class forFixedFluidInv
.class
AnFixedFluidInv
with no tanks.class
ASimpleFixedFluidInv
with a few optimisations to make theFluidInsertable
,FluidExtractable
, andGroupedFluidInvView
implementations much faster than a simple inventory search for larger inventories.class
class
A simple, extendible, fixed size item inventory that supports all of the features thatFixedFluidInv
exposes.class
class
ModifierConstructorDescriptionDelegatingFixedFluidInv(FixedFluidInv delegate)
MappedFixedFluidInv(FixedFluidInv inv, int[] tanks)
SimpleFixedFluidInvExtractable(FixedFluidInv inv, int[] tanks)
Deprecated, for removal: This API element is subject to removal in a future version.SimpleFixedFluidInvInsertable(FixedFluidInv inv, int[] tanks)
Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedFixedFluidInv(FixedFluidInv delegate)
SubFixedFluidInv(FixedFluidInv inv, int fromIndex, int toIndex)
FluidVolumeUtil.extractSingle(FixedFluidInv, int, FluidFilter, FluidVolume, FluidAmount, Simulation)