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.DefaultChangeTracker
Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.item.GroupedItemInvView
GroupedItemInvView.ItemInvStatistic
-
Method Summary
Modifier and TypeMethodDescriptiondefault LimitedGroupedItemInv
default GroupedItemInv
filtered
(ItemFilter filter) Methods inherited from interface alexiil.mc.lib.attributes.item.AbstractItemInvView
getChangeValue
Methods inherited from interface alexiil.mc.lib.attributes.item.GroupedItemInvView
addListener, addListener, getAmount, getAmount, getCapacity, getGroupedView, getSpace, getStatistics, getStatistics, getStoredStacks, getTotalCapacity, isEmpty
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
- Specified by:
filtered
in interfaceItemTransferable
- Returns:
- A new
ItemExtractable
that has an additional filter applied to limit the items extracted from it.
-
createLimitedGroupedInv
- Returns:
- A new
LimitedGroupedItemInv
that provides a more controllable version of thisGroupedItemInv
.
-