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 void
ItemAttributeAdder. 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.void
AttributeProviderItem. 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.T
CombinableAttribute. get(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)
Obtains a combined instance of this attribute in the givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.T
CombinableAttribute. 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 givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if 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 givenItemStack
Reference
.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 givenItemStack
Reference
.T
DefaultedAttribute. getFirst(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)
Obtains the first instance of this attribute in the givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.T
DefaultedAttribute. 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 givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.T
Attribute. getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)
Obtains the first instance of this attribute in the givenItemStack
Reference
, or null if none were found.T
Attribute. 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 givenItemStack
Reference
, 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 interface
FluidInsertable
Defines an object that can have fluids inserted into it.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 LimitedConsumer Modifier and Type Class Description class
SingleFluidTank
A 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.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. 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. interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
This is the "interactItemWithTank" variant that uses a singleFluidTransferable
for the insertable/extractable tanks, and doesn't limit what fluid is moved, or how much is moved.static FluidVolumeUtil.FluidTankInteraction
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 singleFluidTransferable
for the insertable/extractable tanks, and doesn't filter what is moved.static FluidVolumeUtil.FluidTankInteraction
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 singleFluidTransferable
for the insertable/extractable tanks, and doesn't limit the amount moved.static FluidVolumeUtil.FluidTankInteraction
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 singleFluidTransferable
for the insertable/extractable tanks.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 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 FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil. 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 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.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 interface
GroupedItemInv
A modifiable version ofGroupedItemInvView
, except that all modification methods are provided byItemExtractable
andItemInsertable
.interface
ItemInsertable
Defines an object that can have items inserted into it.interface
ItemTransferable
Combined interface forItemInsertable
andItemExtractable
.interface
LimitedGroupedItemInv
Classes in alexiil.mc.lib.attributes.item that implement LimitedConsumer Modifier and Type Class Description class
SingleCopyingItemSlot
class
SingleItemSlot
A 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 class
ItemTransferableItemEntity
-
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 class
CombinedGroupedItemInv
class
CombinedItemInsertable
class
DelegatingGroupedItemInv
class
DirectFixedItemInv
A simple implementation ofFixedItemInv.ModifiableFixedItemInv
that supports all of the features that the interface exposes.class
EmptyGroupedItemInv
GroupedItemInvView
for an empty inventory.class
EmptyItemTransferable
AnItemTransferable
that never returns any items fromEmptyItemTransferable.attemptExtraction(ItemFilter, int, Simulation)
, nor accepts any items inEmptyItemTransferable.attemptInsertion(ItemStack, Simulation)
.class
FilteredItemInsertable
AnItemInsertable
that delegates to anotherItemInsertable
, but has an additional filter as to what can be inserted.class
FilteredItemTransferable
class
FullFixedItemInv
A simple, extendible, fixed size item inventory that supports all of the features thatFixedItemInv.CopyingFixedItemInv
exposes.class
GroupedItemInvFixedWrapper
AGroupedItemInv
wrapper over aFixedItemInv
.class
RejectingItemInsertable
AnItemInsertable
that always refuses to accept any insertedItemStack
.class
SimpleFixedItemInv
Deprecated.You should use eitherDirectFixedItemInv
orFullFixedItemInv
instead of this!class
SimpleFixedItemInvInsertable
Deprecated.UseGroupedItemInvFixedWrapper
instead.class
SimpleGroupedItemInv
A simpleGroupedItemInv
that 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
SimpleLimitedGroupedItemInv
-
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. excessStacks
Methods 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 newLimitedConsumer
that 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)