Uses of Interface
alexiil.mc.lib.attributes.fluid.FluidInsertable
Package | Description |
---|---|
alexiil.mc.lib.attributes.fluid |
The base package for
fluid management. |
alexiil.mc.lib.attributes.fluid.filter | |
alexiil.mc.lib.attributes.fluid.impl | |
alexiil.mc.lib.attributes.fluid.item | |
alexiil.mc.lib.attributes.fluid.world |
-
Uses of FluidInsertable in alexiil.mc.lib.attributes.fluid
Subinterfaces of FluidInsertable in alexiil.mc.lib.attributes.fluid Modifier and Type Interface Description interface
FluidTransferable
Combined interface forFluidInsertable
andFluidExtractable
.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 FluidInsertable Modifier and Type Class Description class
SingleFluidTank
A delegating accessor of a single slot in aFixedFluidInv
.Fields in alexiil.mc.lib.attributes.fluid with type parameters of type FluidInsertable Modifier and Type Field Description static CombinableAttribute<FluidInsertable>
FluidAttributes. INSERTABLE
Methods in alexiil.mc.lib.attributes.fluid that return FluidInsertable Modifier and Type Method Description static FluidInsertable
FluidVolumeUtil. createItemInventoryInsertable(Ref<net.minecraft.item.ItemStack> stackRef, java.util.function.Consumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated.This has been replaced by the item-based attributes system.default FluidInsertable
FluidInsertable. filtered(FluidFilter filter)
default FluidInsertable
FixedFluidInv. getInsertable()
default FluidInsertable
FluidInsertable. getPureInsertable()
Methods in alexiil.mc.lib.attributes.fluid with parameters of type FluidInsertable Modifier and Type Method Description static FluidTransferable
FluidTransferable. from(FluidInsertable insertable)
static FluidTransferable
FluidTransferable. from(FluidInsertable insertable, FluidExtractable extractable)
static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactCursorWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.server.network.ServerPlayerEntity player)
This is the "interactCursorWithTank" variant that doesn't limit what fluid is moved, or how much fluid is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactCursorWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.server.network.ServerPlayerEntity player, FluidAmount maximum)
This is the "interactCursorWithTank" variant that doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactCursorWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter)
This is the "interactCursorWithTank" variant that doesn't limit the maximum amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactCursorWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum)
Attempts to either fill the insertable from the player'sPlayerInventory.getCursorStack()
, or drain the extractable to the cursor stack.static boolean
FluidVolumeUtil. interactCursorWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.server.network.ServerPlayerEntity player)
Deprecated.The boolean return has been deprecated, and the main method has been moved toFluidInvUtil.interactCursorWithTank(FluidInsertable, FluidExtractable, ServerPlayerEntity)
static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactHandWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand)
This is the "interactHandWithTank" variant that doesn't limit what fluid is moved, or how much fluid is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactHandWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidAmount maximum)
This is the "interactHandWithTank" variant that doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactHandWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter)
This is the "interactHandWithTank" variant that doesn't limit the maximum amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactHandWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter, FluidAmount maximum)
Attempts to either fill the insertable from the player'shand
, or drain the extractable to the hand.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
This is the "interactItemWithTank" variant that doesn't limit what fluid is moved, or the amount of fluid that is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidAmount maximum)
This is the "interactItemWithTank" variant that doesn't filter what is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter)
This is the "interactItemWithTank" variant that doesn't limit the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)
Attempts to either fill the insertable from the provided stack reference, or drain the extractable to the provided stack.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack)
This is the "interactWithTank" variant that doesn't limit what fluid is moved, or the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidAmount maximum)
This is the "interactWithTank" variant that doesn't limit the fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter)
This is the "interactWithTank" variant that doesn't limit the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)
Attempts to either fill the insertable from the provided stack reference, or drain the extractable to the provided stack.static FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Ref<net.minecraft.item.ItemStack> stack, java.util.function.Consumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated.This has been replaced byFluidInvUtil.interactItemWithTank(FluidInsertable, FluidExtractable, Reference, LimitedConsumer)
.static FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated.UseFluidInvUtil.interactItemWithTank(FluidInsertable, FluidExtractable, Reference, LimitedConsumer)
instead: all interactWithTank methods have been moved toFluidInvUtil
.static boolean
FluidVolumeUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> mainStackRef)
Deprecated.The boolean return has been deprecated, and the main method has been moved toFluidInvUtil.interactWithTank(FluidInsertable, FluidExtractable, PlayerEntity, Reference)
static boolean
FluidVolumeUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, 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(FluidInsertable, FluidExtractable, PlayerEntity, Hand)
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
. -
Uses of FluidInsertable in alexiil.mc.lib.attributes.fluid.filter
Fields in alexiil.mc.lib.attributes.fluid.filter declared as FluidInsertable Modifier and Type Field Description FluidInsertable
FluidInsertableFilter. insertable
Constructors in alexiil.mc.lib.attributes.fluid.filter with parameters of type FluidInsertable Constructor Description FluidInsertableFilter(FluidInsertable insertable)
-
Uses of FluidInsertable in alexiil.mc.lib.attributes.fluid.impl
Methods in alexiil.mc.lib.attributes.fluid.impl that return FluidInsertable Modifier and Type Method Description FluidInsertable
FilteredFluidInsertable. filtered(FluidFilter filter)
FluidInsertable
EmptyFixedFluidInv. getInsertable()
FluidInsertable
EmptyFluidTransferable. getPureInsertable()
FluidInsertable
EmptyGroupedFluidInv. getPureInsertable()
FluidInsertable
RejectingFluidInsertable. getPureInsertable()
Constructors in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidInsertable Constructor Description FilteredFluidInsertable(FluidInsertable real, FluidFilter filter)
Constructor parameters in alexiil.mc.lib.attributes.fluid.impl with type arguments of type FluidInsertable Constructor Description CombinedFluidInsertable(java.util.List<? extends FluidInsertable> list)
-
Uses of FluidInsertable in alexiil.mc.lib.attributes.fluid.item
Classes in alexiil.mc.lib.attributes.fluid.item that implement FluidInsertable 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. -
Uses of FluidInsertable in alexiil.mc.lib.attributes.fluid.world
Methods in alexiil.mc.lib.attributes.fluid.world that return FluidInsertable Modifier and Type Method Description static FluidInsertable
FluidWorldUtil. createFluidPlacer(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos)