Package alexiil.mc.lib.attributes.item
Interface ItemTransferable
- All Superinterfaces:
ItemExtractable
,ItemInsertable
,LimitedConsumer<net.minecraft.item.ItemStack>
- All Known Subinterfaces:
GroupedItemInv
,LimitedGroupedItemInv
- All Known Implementing Classes:
CombinedGroupedItemInv
,DelegatingGroupedItemInv
,DirectFixedItemInv
,EmptyGroupedItemInv
,EmptyItemTransferable
,FilteredItemTransferable
,FullFixedItemInv
,GroupedItemInvFixedWrapper
,ItemTransferableItemEntity
,SimpleFixedItemInv
,SimpleGroupedItemInv
,SimpleLimitedGroupedItemInv
,SingleCopyingItemSlot
,SingleItemSlot
Combined interface for
ItemInsertable
and ItemExtractable
. (This is provided for simplicity when
exposing inventories for modification but when you don't want to implement the full set of methods that
GroupedItemInv
provides).-
Method Summary
Modifier and TypeMethodDescriptiondefault ItemTransferable
filtered
(ItemFilter filter) static ItemTransferable
from
(ItemExtractable extractable) static ItemTransferable
from
(ItemInsertable insertable) static ItemTransferable
from
(ItemInsertable insertable, ItemExtractable extractable) Methods inherited from interface alexiil.mc.lib.attributes.item.ItemExtractable
attemptAnyExtraction, attemptExtraction, couldExtractAnything, extract, extract, extract, getPureExtractable
Methods inherited from interface alexiil.mc.lib.attributes.item.ItemInsertable
attemptInsertion, getInsertionFilter, getPureInsertable, insert, offer, offer, wouldAccept, wouldPartiallyAccept
-
Method Details
-
filtered
- Specified by:
filtered
in interfaceItemExtractable
- Specified by:
filtered
in interfaceItemInsertable
- Returns:
- A new
ItemExtractable
that has an additional filter applied to limit the items extracted from it.
-
from
- Returns:
- A new
ItemTransferable
that will insert into the given insertable, and never return any items fromItemExtractable.attemptExtraction(ItemFilter, int, Simulation)
.
-
from
- Returns:
- A new
ItemTransferable
that will extract from the given extractable, and reject every inserted stack.
-
from
- Returns:
- A new
ItemTransferable
that will extract from the given extractable, and insert into the given extractable.
-