Package alexiil.mc.lib.attributes.item
Interface LimitedGroupedItemInv
- All Superinterfaces:
- AbstractItemInvView,- GroupedItemInv,- GroupedItemInvView,- ItemExtractable,- ItemInsertable,- ItemTransferable,- LimitedConsumer<net.minecraft.item.ItemStack>
- All Known Implementing Classes:
- SimpleLimitedGroupedItemInv
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA rule that is applied once for everyItemStackthat matches theItemFilterthat was used ingetRule(ItemFilter).Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.item.AbstractItemInvViewAbstractItemInvView.DefaultChangeTrackerNested classes/interfaces inherited from interface alexiil.mc.lib.attributes.item.GroupedItemInvViewGroupedItemInvView.ItemInvStatistic
- 
Method SummaryModifier and TypeMethodDescriptiondefault GroupedItemInvcopy()Creates a copy of thisLimitedGroupedItemInv(with the same backing inventory and the same rules), but not marked as final.getRule(ItemFilter filter)getRule(net.minecraft.item.ItemStack stack)Marks this object as final, and disallows any further changes to this.default LimitedGroupedItemInvreset()Completely clears all rules currently imposed.Methods inherited from interface alexiil.mc.lib.attributes.item.AbstractItemInvViewgetChangeValueMethods inherited from interface alexiil.mc.lib.attributes.item.GroupedItemInvcreateLimitedGroupedInv, filteredMethods inherited from interface alexiil.mc.lib.attributes.item.GroupedItemInvViewaddListener, addListener, getAmount, getAmount, getCapacity, getGroupedView, getSpace, getStatistics, getStatistics, getStoredStacks, getTotalCapacity, isEmptyMethods inherited from interface alexiil.mc.lib.attributes.item.ItemExtractableattemptAnyExtraction, attemptExtraction, couldExtractAnything, extract, extract, extract, getPureExtractableMethods inherited from interface alexiil.mc.lib.attributes.item.ItemInsertableattemptInsertion, getInsertionFilter, getPureInsertable, insert, offer, offer, wouldAccept, wouldPartiallyAccept
- 
Method Details- 
markFinalLimitedGroupedItemInv markFinal()Marks this object as final, and disallows any further changes to this. If this is called thenasUnmodifiable()will return this object.- Returns:
- this.
 
- 
copyLimitedGroupedItemInv copy()Creates a copy of thisLimitedGroupedItemInv(with the same backing inventory and the same rules), but not marked as final.
- 
resetCompletely clears all rules currently imposed.- Returns:
- This.
 
- 
asUnmodifiable- Returns:
- A new GroupedItemInvwith the current rules of this, but that cannot be modified.
 
- 
getAllRule- Returns:
- An LimitedGroupedItemInv.ItemLimitRulethat applies to everything.
 
- 
getRule- Returns:
- A rule for the specific ItemStackgiven.
 
- 
getRule- Returns:
- An LimitedGroupedItemInv.ItemLimitRulethat applies to every item that matches the given filter.
 
 
-