Uses of Interface
alexiil.mc.lib.attributes.fluid.FixedFluidInv
Package | Description |
---|---|
alexiil.mc.lib.attributes.fluid |
The base package for
fluid management. |
alexiil.mc.lib.attributes.fluid.impl |
-
Uses of FixedFluidInv in alexiil.mc.lib.attributes.fluid
Subinterfaces of FixedFluidInv in alexiil.mc.lib.attributes.fluid Modifier and Type Interface Description interface
LimitedFixedFluidInv
A type ofFixedFluidInv
that wraps an existingFixedFluidInv
and provides custom control over the actual modification of the wrappedFixedFluidInv
.Fields in alexiil.mc.lib.attributes.fluid with type parameters of type FixedFluidInv Modifier and Type Field Description static CombinableAttribute<FixedFluidInv>
FluidAttributes. FIXED_INV
Methods in alexiil.mc.lib.attributes.fluid that return FixedFluidInv Modifier and Type Method Description default FixedFluidInv
LimitedFixedFluidInv. asUnmodifiable()
FixedFluidInv
SingleFluidTank. getBackingInv()
default FixedFluidInv
FixedFluidInv. getMappedInv(int... tanks)
default FixedFluidInv
FixedFluidInv. getSubInv(int fromIndex, int toIndex)
Methods in alexiil.mc.lib.attributes.fluid with parameters of type FixedFluidInv Modifier and Type Method Description 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.static FluidVolume
FluidVolumeUtil. insertSingle(FixedFluidInv inv, int tank, FluidVolume toInsert, Simulation simulation)
Deprecated.As this has been moved toinsertFluid(int, FluidVolume, Simulation)
static FluidVolumeUtil.FluidTankInteraction
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.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)
This is the "interactCursorWithTank" variant that takes a singleFixedFluidInv
and doesn't limit the maximum amount of fluid 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 boolean
FluidVolumeUtil. interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player)
Deprecated.The boolean return has been deprecated, and the main method has been moved toFluidInvUtil.interactCursorWithTank(FixedFluidInv, ServerPlayerEntity)
static FluidVolumeUtil.FluidTankInteraction
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.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)
This is the "interactHandWithTank" variant that takes a singleFixedFluidInv
and doesn't limit the maximum amount of fluid 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. 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.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)
This is the "interactItemWithTank" variant that uses a singleFixedFluidInv
for the insertable/extractable tanks, and doesn't limit the amount of fluid 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. 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.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)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
, and doesn't limit the amount of fluid 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
FluidVolumeUtil. interactWithTank(FixedFluidInv inv, Ref<net.minecraft.item.ItemStack> stack, java.util.function.Consumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated.This has been replaced byFluidInvUtil.interactItemWithTank(FixedFluidInv, Reference, LimitedConsumer)
.static FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil. interactWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated.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.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
Classes in alexiil.mc.lib.attributes.fluid.impl with type parameters of type FixedFluidInv Modifier and Type Class Description class
CombinedFixedFluidInv<InvType extends FixedFluidInv>
AnFixedFluidInv
that delegates to a list of them instead of storing items directly.Classes in alexiil.mc.lib.attributes.fluid.impl that implement FixedFluidInv Modifier and Type Class Description class
CombinedFixedFluidInv<InvType extends FixedFluidInv>
AnFixedFluidInv
that delegates to a list of them instead of storing items directly.class
DelegatingFixedFluidInv
A simple delegate base class forFixedFluidInv
.class
EmptyFixedFluidInv
AnFixedFluidInv
with no tanks.class
JumboFixedFluidInv
ASimpleFixedFluidInv
with a few optimisations to make theFluidInsertable
,FluidExtractable
, andGroupedFluidInvView
implementations much faster than a simple inventory search for larger inventories.class
MappedFixedFluidInv
class
SimpleFixedFluidInv
A simple, extendible, fixed size item inventory that supports all of the features thatFixedFluidInv
exposes.class
SimpleLimitedFixedFluidInv
class
SubFixedFluidInv
Fields in alexiil.mc.lib.attributes.fluid.impl declared as FixedFluidInv Modifier and Type Field Description protected FixedFluidInv
DelegatingFixedFluidInv. delegate
Methods in alexiil.mc.lib.attributes.fluid.impl that return FixedFluidInv Modifier and Type Method Description protected FixedFluidInv
GroupedFluidInvFixedWrapper. inv()
Constructors in alexiil.mc.lib.attributes.fluid.impl with parameters of type FixedFluidInv Constructor Description DelegatingFixedFluidInv(FixedFluidInv delegate)
GroupedFluidInvFixedWrapper(FixedFluidInv inv)
MappedFixedFluidInv(FixedFluidInv inv, int[] tanks)
SimpleFixedFluidInvExtractable(FixedFluidInv inv, int[] tanks)
Deprecated.SimpleFixedFluidInvInsertable(FixedFluidInv inv, int[] tanks)
Deprecated.SimpleLimitedFixedFluidInv(FixedFluidInv delegate)
SubFixedFluidInv(FixedFluidInv inv, int fromIndex, int toIndex)