Uses of Interface
alexiil.mc.lib.attributes.misc.LimitedConsumer
| Package | Description |
|---|---|
| alexiil.mc.lib.attributes | |
| alexiil.mc.lib.attributes.fluid |
The base package for
fluid management. |
| alexiil.mc.lib.attributes.fluid.impl | |
| alexiil.mc.lib.attributes.fluid.item | |
| alexiil.mc.lib.attributes.item | |
| alexiil.mc.lib.attributes.item.compat.mod.emi.iteminv | |
| alexiil.mc.lib.attributes.item.entity | |
| alexiil.mc.lib.attributes.item.impl | |
| alexiil.mc.lib.attributes.misc |
-
Uses of LimitedConsumer in alexiil.mc.lib.attributes
Methods in alexiil.mc.lib.attributes with parameters of type LimitedConsumer Modifier and Type Method Description voidItemAttributeAdder. 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.TCombinableAttribute. 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.TCombinableAttribute. get(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, java.util.function.Predicate<T> filter)Obtains a combined instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.ItemAttributeList<T>Attribute. getAll(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)Obtains all instances of this attribute in the givenItemStackReference.ItemAttributeList<T>Attribute. getAll(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, java.util.function.Predicate<T> filter)Obtains all instances of this attribute in the givenItemStackReference.TDefaultedAttribute. 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.TDefaultedAttribute. getFirst(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, java.util.function.Predicate<T> filter)Obtains the first instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.TAttribute. 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.TAttribute. getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, java.util.function.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.fluid
Subinterfaces of LimitedConsumer in alexiil.mc.lib.attributes.fluid Modifier and Type Interface Description interfaceFluidInsertableDefines an object that can have fluids inserted into it.interfaceFluidTransferableCombined interface forFluidInsertableandFluidExtractable.interfaceGroupedFluidInvA modifiable version ofGroupedFluidInvView, except that all modification methods are provided byFluidExtractableandFluidInsertable.interfaceLimitedGroupedFluidInvClasses in alexiil.mc.lib.attributes.fluid that implement LimitedConsumer Modifier and Type Class Description classSingleFluidTankA delegating accessor of a single slot in aFixedFluidInv.Methods in alexiil.mc.lib.attributes.fluid with parameters of type LimitedConsumer Modifier and Type Method Description static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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.static FluidVolumeUtil.FluidTankInteractionFluidVolumeUtil. 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 FluidVolumeUtil.FluidTankInteractionFluidVolumeUtil. 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 FluidVolumeUtil.FluidTankInteractionFluidVolumeUtil. interactWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)Deprecated.UseFluidInvUtil.interactItemWithTank(FluidTransferable, Reference, LimitedConsumer)instead: all interactWithTank methods have been moved toFluidInvUtil. -
Uses of LimitedConsumer in alexiil.mc.lib.attributes.fluid.impl
-
Uses of LimitedConsumer in alexiil.mc.lib.attributes.fluid.item
Classes in alexiil.mc.lib.attributes.fluid.item that implement LimitedConsumer Modifier and Type Class Description classItemBasedSingleFluidInvAn 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 LimitedConsumer Constructor Description ItemBasedSingleFluidInv(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks) -
Uses of LimitedConsumer in alexiil.mc.lib.attributes.item
Subinterfaces of LimitedConsumer in alexiil.mc.lib.attributes.item Modifier and Type Interface Description interfaceGroupedItemInvA modifiable version ofGroupedItemInvView, except that all modification methods are provided byItemExtractableandItemInsertable.interfaceItemInsertableDefines an object that can have items inserted into it.interfaceItemTransferableCombined interface forItemInsertableandItemExtractable.interfaceLimitedGroupedItemInvClasses in alexiil.mc.lib.attributes.item that implement LimitedConsumer Modifier and Type Class Description classSingleCopyingItemSlotclassSingleItemSlotA delegating accessor of a single slot in aFixedItemInv. -
Uses of LimitedConsumer in alexiil.mc.lib.attributes.item.compat.mod.emi.iteminv
Constructors in alexiil.mc.lib.attributes.item.compat.mod.emi.iteminv with parameters of type LimitedConsumer Constructor Description FixedInvEmiItemInv(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks) -
Uses of LimitedConsumer in alexiil.mc.lib.attributes.item.entity
Classes in alexiil.mc.lib.attributes.item.entity that implement LimitedConsumer Modifier and Type Class Description classItemTransferableItemEntity -
Uses of LimitedConsumer in alexiil.mc.lib.attributes.item.impl
Classes in alexiil.mc.lib.attributes.item.impl that implement LimitedConsumer Modifier and Type Class Description classCombinedGroupedItemInvclassCombinedItemInsertableclassDelegatingGroupedItemInvclassDirectFixedItemInvA simple implementation ofFixedItemInv.ModifiableFixedItemInvthat supports all of the features that the interface exposes.classEmptyGroupedItemInvGroupedItemInvViewfor an empty inventory.classEmptyItemTransferableAnItemTransferablethat never returns any items fromEmptyItemTransferable.attemptExtraction(ItemFilter, int, Simulation), nor accepts any items inEmptyItemTransferable.attemptInsertion(ItemStack, Simulation).classFilteredItemInsertableAnItemInsertablethat delegates to anotherItemInsertable, but has an additional filter as to what can be inserted.classFilteredItemTransferableclassFullFixedItemInvA simple, extendible, fixed size item inventory that supports all of the features thatFixedItemInv.CopyingFixedItemInvexposes.classGroupedItemInvFixedWrapperAGroupedItemInvwrapper over aFixedItemInv.classRejectingItemInsertableAnItemInsertablethat always refuses to accept any insertedItemStack.classSimpleFixedItemInvDeprecated.You should use eitherDirectFixedItemInvorFullFixedItemInvinstead of this!classSimpleFixedItemInvInsertableDeprecated.UseGroupedItemInvFixedWrapperinstead.classSimpleGroupedItemInvA 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.classSimpleLimitedGroupedItemInv -
Uses of LimitedConsumer in alexiil.mc.lib.attributes.misc
Fields in alexiil.mc.lib.attributes.misc declared as LimitedConsumer Modifier and Type Field Description protected LimitedConsumer<net.minecraft.item.ItemStack>AbstractItemBasedAttribute. excessStacksMethods in alexiil.mc.lib.attributes.misc that return LimitedConsumer Modifier and Type Method Description static <T> LimitedConsumer<T>LimitedConsumer. fromConsumer(java.util.function.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 LimitedConsumer Modifier and Type Method Description static <T> SimulatableRef<T>Reference. simulating(java.util.function.Supplier<T> getter, LimitedConsumer<T> setter)Constructors in alexiil.mc.lib.attributes.misc with parameters of type LimitedConsumer Constructor Description AbstractItemBasedAttribute(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)SimulatableRef(java.util.function.Supplier<T> getter, LimitedConsumer<T> setter)