Package alexiil.mc.lib.attributes.item
Interface GroupedItemInv
- All Superinterfaces:
AbstractItemInvView,GroupedItemInvView,ItemExtractable,ItemInsertable,ItemTransferable,LimitedConsumer<net.minecraft.item.ItemStack>
- All Known Subinterfaces:
LimitedGroupedItemInv
- All Known Implementing Classes:
CombinedGroupedItemInv,DelegatingGroupedItemInv,DirectFixedItemInv,EmptyGroupedItemInv,GroupedItemInvFixedWrapper,SimpleGroupedItemInv,SimpleLimitedGroupedItemInv
A modifiable version of
GroupedItemInvView, except that all modification methods are provided by
ItemExtractable and ItemInsertable.-
Nested Class Summary
Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.item.AbstractItemInvView
AbstractItemInvView.DefaultChangeTrackerNested classes/interfaces inherited from interface alexiil.mc.lib.attributes.item.GroupedItemInvView
GroupedItemInvView.ItemInvStatistic -
Method Summary
Modifier and TypeMethodDescriptiondefault LimitedGroupedItemInvdefault GroupedItemInvfiltered(ItemFilter filter) Methods inherited from interface alexiil.mc.lib.attributes.item.AbstractItemInvView
getChangeValueMethods inherited from interface alexiil.mc.lib.attributes.item.GroupedItemInvView
addListener, addListener, getAmount, getAmount, getCapacity, getGroupedView, getSpace, getStatistics, getStatistics, getStoredStacks, getTotalCapacity, isEmptyMethods 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- Specified by:
filteredin interfaceItemTransferable- Returns:
- A new
ItemExtractablethat has an additional filter applied to limit the items extracted from it.
-
createLimitedGroupedInv
- Returns:
- A new
LimitedGroupedItemInvthat provides a more controllable version of thisGroupedItemInv.
-