Uses of Interface
alexiil.mc.lib.attributes.fluid.FluidInsertable
Packages that use FluidInsertable
Package
Description
The base package for
fluid management.-
Uses of FluidInsertable in alexiil.mc.lib.attributes.fluid
Subinterfaces of FluidInsertable in alexiil.mc.lib.attributes.fluidModifier and TypeInterfaceDescriptioninterfaceCombined interface forFluidInsertableandFluidExtractable.interfaceA modifiable version ofGroupedFluidInvView, except that all modification methods are provided byFluidExtractableandFluidInsertable.interfaceClasses in alexiil.mc.lib.attributes.fluid that implement FluidInsertableModifier and TypeClassDescriptionfinal classA delegating accessor of a single slot in aFixedFluidInv.Fields in alexiil.mc.lib.attributes.fluid with type parameters of type FluidInsertableModifier and TypeFieldDescriptionstatic final CombinableAttribute<FluidInsertable>FluidAttributes.INSERTABLEMethods in alexiil.mc.lib.attributes.fluid that return FluidInsertableModifier and TypeMethodDescriptionstatic FluidInsertableFluidVolumeUtil.createItemInventoryInsertable(Ref<net.minecraft.item.ItemStack> stackRef, Consumer<net.minecraft.item.ItemStack> excessStacks) Deprecated, for removal: This API element is subject to removal in a future version.This has been replaced by the item-based attributes system.default FluidInsertableFluidInsertable.filtered(FluidFilter filter) default FluidInsertableFixedFluidInv.getInsertable()default FluidInsertableFluidInsertable.getPureInsertable()Methods in alexiil.mc.lib.attributes.fluid with parameters of type FluidInsertableModifier and TypeMethodDescriptionstatic FluidTransferableFluidTransferable.from(FluidInsertable insertable) static FluidTransferableFluidTransferable.from(FluidInsertable insertable, FluidExtractable extractable) 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.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.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.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 booleanFluidVolumeUtil.interactCursorWithTank(FluidInsertable invInsert, FluidExtractable invExtract, 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(FluidInsertable, FluidExtractable, ServerPlayerEntity)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.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.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.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.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.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.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.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.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.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.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.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.FluidVolumeUtil.interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, 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(FluidInsertable, FluidExtractable, Reference, LimitedConsumer).FluidVolumeUtil.interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, 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(FluidInsertable, FluidExtractable, Reference, LimitedConsumer)instead: all interactWithTank methods have been moved toFluidInvUtil.static booleanFluidVolumeUtil.interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> mainStackRef) 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.interactWithTank(FluidInsertable, FluidExtractable, PlayerEntity, Reference)static booleanFluidVolumeUtil.interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, 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(FluidInsertable, FluidExtractable, PlayerEntity, Hand)static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to) Attempts to move as much fluid as possible from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, int maximum) Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidAmount maximum) Attempts to move up to the given amount of fluid from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidAmount maximum, Simulation simulation) Attempts to move up to the given amount of fluid from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter) Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, int maximum) Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum) Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum, Simulation simulation) Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, Simulation simulation) Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, Simulation simulation) Attempts to move as much fluid as possible from theFluidExtractableto theFluidInsertable. -
Uses of FluidInsertable in alexiil.mc.lib.attributes.fluid.filter
Fields in alexiil.mc.lib.attributes.fluid.filter declared as FluidInsertableConstructors in alexiil.mc.lib.attributes.fluid.filter with parameters of type FluidInsertable -
Uses of FluidInsertable in alexiil.mc.lib.attributes.fluid.impl
Classes in alexiil.mc.lib.attributes.fluid.impl that implement FluidInsertableModifier and TypeClassDescriptionfinal classclassclassenumAnFluidTransferablethat never returns any items fromEmptyFluidTransferable.attemptExtraction(FluidFilter, int, Simulation), nor accepts any items inEmptyFluidTransferable.attemptInsertion(FluidVolume, Simulation).enumGroupedFluidInvViewfor an empty inventory.final classAFluidInsertablethat delegates to anotherFluidInsertable, but has an additional filter as to what can be inserted.final classclassAnGroupedFluidInvwrapper over anFixedFluidInv.classASimpleFixedFluidInvwith a few optimisations to make theFluidInsertable,FluidExtractable, andGroupedFluidInvViewimplementations much faster than a simple inventory search for larger inventories.enumAnFluidInsertablethat always refuses to accept any insertedFluidVolume.classA simple, extendible, fixed size item inventory that supports all of the features thatFixedFluidInvexposes.final classDeprecated, for removal: This API element is subject to removal in a future version.This has been replaced withFixedFluidInv.getMappedInv(int...)followed byFixedFluidInv.getInsertable().classMethods in alexiil.mc.lib.attributes.fluid.impl that return FluidInsertableModifier and TypeMethodDescriptionFilteredFluidInsertable.filtered(FluidFilter filter) EmptyFixedFluidInv.getInsertable()EmptyFluidTransferable.getPureInsertable()EmptyGroupedFluidInv.getPureInsertable()RejectingFluidInsertable.getPureInsertable()Constructors in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidInsertableConstructor parameters in alexiil.mc.lib.attributes.fluid.impl with type arguments of type FluidInsertable -
Uses of FluidInsertable in alexiil.mc.lib.attributes.fluid.item
Classes in alexiil.mc.lib.attributes.fluid.item that implement FluidInsertableModifier and TypeClassDescriptionclassAn abstractGroupedFluidInvfor anAbstractItemBasedAttributewhich 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 FluidInsertableModifier and TypeMethodDescriptionstatic FluidInsertableFluidWorldUtil.createFluidPlacer(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos)