Uses of Interface
alexiil.mc.lib.attributes.misc.LimitedConsumer
Packages that use LimitedConsumer
Package
Description
The base package for 
fluid management.- 
Uses of LimitedConsumer in alexiil.mc.lib.attributesMethods in alexiil.mc.lib.attributes with parameters of type LimitedConsumerModifier and TypeMethodDescriptionvoidItemAttributeAdder.addAll(Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excess, ItemAttributeList<T> to)Adds every attribute instance to the given list that the item itself cannot be expected to add support for.voidAttributeProviderItem.addAllAttributes(Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excess, ItemAttributeList<?> to)Adds every attribute instance to the given list that the item itself cannot be expected to add support for.CombinableAttribute.get(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)Obtains a combined instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.CombinableAttribute.get(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, Predicate<T> filter)Obtains a combined instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.Attribute.getAll(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)Obtains all instances of this attribute in the givenItemStackReference.Attribute.getAll(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, Predicate<T> filter)Obtains all instances of this attribute in the givenItemStackReference.DefaultedAttribute.getFirst(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)Obtains the first instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.DefaultedAttribute.getFirst(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, Predicate<T> filter)Obtains the first instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.Attribute.getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)Obtains the first instance of this attribute in the givenItemStackReference, or null if none were found.Attribute.getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, Predicate<T> filter)Obtains the first instance of this attribute in the givenItemStackReference, or null if none were found.
- 
Uses of LimitedConsumer in alexiil.mc.lib.attributes.fluidSubinterfaces of LimitedConsumer in alexiil.mc.lib.attributes.fluidModifier and TypeInterfaceDescriptioninterfaceDefines an object that can have fluids inserted into it.interfaceCombined interface forFluidInsertableandFluidExtractable.interfaceA modifiable version ofGroupedFluidInvView, except that all modification methods are provided byFluidExtractableandFluidInsertable.interfaceClasses in alexiil.mc.lib.attributes.fluid that implement LimitedConsumerModifier and TypeClassDescriptionclassA delegating accessor of a single slot in aFixedFluidInv.Methods in alexiil.mc.lib.attributes.fluid with parameters of type LimitedConsumerModifier and TypeMethodDescriptionFluidInvUtil.interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)This is the "interactItemWithTank" variant that uses a singleFixedFluidInvfor 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 singleFixedFluidInvfor 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 singleFixedFluidInvfor 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 singleFixedFluidInvfor the insertable/extractable tanks.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.interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)This is the "interactItemWithTank" variant that uses a singleFluidTransferablefor the insertable/extractable tanks, and doesn't limit what fluid is moved, or how much is moved.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 singleFluidTransferablefor the insertable/extractable tanks, and doesn't filter what is moved.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 singleFluidTransferablefor the insertable/extractable tanks, and doesn't limit the amount moved.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 singleFluidTransferablefor the insertable/extractable tanks.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.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.FluidVolumeUtil.interactWithTank(FluidTransferable 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(FluidTransferable, Reference, LimitedConsumer)instead: all interactWithTank methods have been moved toFluidInvUtil.
- 
Uses of LimitedConsumer in alexiil.mc.lib.attributes.fluid.implClasses in alexiil.mc.lib.attributes.fluid.impl that implement LimitedConsumerModifier and TypeClassDescriptionclassclassclassclassAnFluidTransferablethat never returns any items fromEmptyFluidTransferable.attemptExtraction(FluidFilter, int, Simulation), nor accepts any items inEmptyFluidTransferable.attemptInsertion(FluidVolume, Simulation).classGroupedFluidInvViewfor an empty inventory.classAFluidInsertablethat delegates to anotherFluidInsertable, but has an additional filter as to what can be inserted.classclassAnGroupedFluidInvwrapper over anFixedFluidInv.classASimpleFixedFluidInvwith a few optimisations to make theFluidInsertable,FluidExtractable, andGroupedFluidInvViewimplementations much faster than a simple inventory search for larger inventories.classAnFluidInsertablethat always refuses to accept any insertedFluidVolume.classA simple, extendible, fixed size item inventory that supports all of the features thatFixedFluidInvexposes.classDeprecated, for removal: This API element is subject to removal in a future version.This has been replaced withFixedFluidInv.getMappedInv(int...)followed byFixedFluidInv.getInsertable().class
- 
Uses of LimitedConsumer in alexiil.mc.lib.attributes.fluid.itemClasses in alexiil.mc.lib.attributes.fluid.item that implement LimitedConsumerModifier and TypeClassDescriptionclassAn abstractGroupedFluidInvfor anAbstractItemBasedAttributewhich only ever contains a single fluid, and can contain any amount of said fluid between 0 and it's capacity.Constructors in alexiil.mc.lib.attributes.fluid.item with parameters of type LimitedConsumerModifierConstructorDescriptionprotectedItemBasedSingleFluidInv(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
- 
Uses of LimitedConsumer in alexiil.mc.lib.attributes.itemSubinterfaces of LimitedConsumer in alexiil.mc.lib.attributes.itemModifier and TypeInterfaceDescriptioninterfaceA modifiable version ofGroupedItemInvView, except that all modification methods are provided byItemExtractableandItemInsertable.interfaceDefines an object that can have items inserted into it.interfaceCombined interface forItemInsertableandItemExtractable.interfaceClasses in alexiil.mc.lib.attributes.item that implement LimitedConsumerModifier and TypeClassDescriptionclassclassA delegating accessor of a single slot in aFixedItemInv.
- 
Uses of LimitedConsumer in alexiil.mc.lib.attributes.item.entityClasses in alexiil.mc.lib.attributes.item.entity that implement LimitedConsumer
- 
Uses of LimitedConsumer in alexiil.mc.lib.attributes.item.implClasses in alexiil.mc.lib.attributes.item.impl that implement LimitedConsumerModifier and TypeClassDescriptionclassclassclassclassA simple implementation ofFixedItemInv.ModifiableFixedItemInvthat supports all of the features that the interface exposes.classGroupedItemInvViewfor an empty inventory.classAnItemTransferablethat never returns any items fromEmptyItemTransferable.attemptExtraction(ItemFilter, int, Simulation), nor accepts any items inEmptyItemTransferable.attemptInsertion(ItemStack, Simulation).classAnItemInsertablethat delegates to anotherItemInsertable, but has an additional filter as to what can be inserted.classclassA simple, extendible, fixed size item inventory that supports all of the features thatFixedItemInv.CopyingFixedItemInvexposes.classAGroupedItemInvwrapper over aFixedItemInv.classAnItemInsertablethat always refuses to accept any insertedItemStack.classDeprecated, for removal: This API element is subject to removal in a future version.You should use eitherDirectFixedItemInvorFullFixedItemInvinstead of this!classDeprecated, for removal: This API element is subject to removal in a future version.UseGroupedItemInvFixedWrapperinstead.classA simpleGroupedItemInvthat has a limit on both the number of different items that this can store, and the total number of items that can be stored.class
- 
Uses of LimitedConsumer in alexiil.mc.lib.attributes.miscFields in alexiil.mc.lib.attributes.misc declared as LimitedConsumerModifier and TypeFieldDescriptionprotected LimitedConsumer<net.minecraft.item.ItemStack>AbstractItemBasedAttribute.excessStacksMethods in alexiil.mc.lib.attributes.misc that return LimitedConsumerModifier and TypeMethodDescriptionstatic <T> LimitedConsumer<T>LimitedConsumer.fromConsumer(Consumer<T> consumer)Creates a newLimitedConsumerthat accepts everything, and passes it on to the givenConsumer.static <T> LimitedConsumer<T>LimitedConsumer.rejecting()Methods in alexiil.mc.lib.attributes.misc with parameters of type LimitedConsumerModifier and TypeMethodDescriptionstatic <T> SimulatableRef<T>Reference.simulating(Supplier<T> getter, LimitedConsumer<T> setter)Constructors in alexiil.mc.lib.attributes.misc with parameters of type LimitedConsumerModifierConstructorDescriptionprotectedAbstractItemBasedAttribute(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)SimulatableRef(Supplier<T> getter, LimitedConsumer<T> setter)
FluidInvUtil.interactItemWithTank(FixedFluidInv, Reference, LimitedConsumer)instead: all interactWithTank methods have been moved toFluidInvUtil.