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
public interface ItemTransferable extends ItemInsertable, ItemExtractable
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 Type Method Description default ItemTransferablefiltered(ItemFilter filter)static ItemTransferablefrom(ItemExtractable extractable)static ItemTransferablefrom(ItemInsertable insertable)static ItemTransferablefrom(ItemInsertable insertable, ItemExtractable extractable)Methods inherited from interface alexiil.mc.lib.attributes.item.ItemExtractable
attemptAnyExtraction, attemptExtraction, couldExtractAnything, extract, extract, extract, getPureExtractableMethods inherited from interface alexiil.mc.lib.attributes.item.ItemInsertable
attemptInsertion, getInsertionFilter, getPureInsertable, insert, offer, offer, wouldAccept, wouldPartiallyAccept 
- 
Method Details
- 
filtered
- Specified by:
 filteredin interfaceItemExtractable- Specified by:
 filteredin interfaceItemInsertable- Returns:
 - A new 
ItemExtractablethat has an additional filter applied to limit the items extracted from it. 
 - 
from
- Returns:
 - A new 
ItemTransferablethat will insert into the given insertable, and never return any items fromItemExtractable.attemptExtraction(ItemFilter, int, Simulation). 
 - 
from
- Returns:
 - A new 
ItemTransferablethat will extract from the given extractable, and reject every inserted stack. 
 - 
from
- Returns:
 - A new 
ItemTransferablethat will extract from the given extractable, and insert into the given extractable. 
 
 -