Package alexiil.mc.lib.attributes.item
The base package for
item
management attributes
.-
Interface Summary Interface Description AbstractItemInvView Base interface forFixedItemInvView
andGroupedItemInvView
.FixedItemInv AFixedItemInvView
that can have it's contents changed.FixedItemInv.CopyingFixedItemInv The "complex" variant ofFixedItemInv
that always returns copies of the stack held.FixedItemInv.ModifiableFixedItemInv The "simpler" variant ofFixedItemInv
which allows callers to freely modify the currentItemStack
contained in it's inventory.FixedItemInvView A view of a fixed inventory for items, where the size of the inventory never changes, and every slot is "simple": The amount of every slot will never exceed 64, the normal maximum stack size of minecraft. The stack will stay in the slot until it is removed or changed by something else.GroupedItemInv A modifiable version ofGroupedItemInvView
, except that all modification methods are provided byItemExtractable
andItemInsertable
.GroupedItemInvView An alternative way of storing large numbers ofItemStack
, without using large numbers of slots in aFixedItemInvView
.InvMarkDirtyListener ListenerFunctionalInterface
forAbstractItemInvView.addListener(InvMarkDirtyListener, alexiil.mc.lib.attributes.ListenerRemovalToken)
.ItemExtractable Defines an object that can have items extracted from it.ItemInsertable Defines an object that can have items inserted into it.ItemInvAmountChangeListener ItemInvSlotChangeListener ListenerFunctionalInterface
forFixedItemInvView
.ItemInvSlotChangeListener.ItemInvSlotListener A specialised type of listener that won't receive the previousItemStack
that occupied the given slot.ItemTransferable Combined interface forItemInsertable
andItemExtractable
.LimitedFixedItemInv A type ofFixedItemInv
that wraps an existingFixedItemInv
and provides custom control over the actual modification of the wrappedFixedItemInv
.LimitedFixedItemInv.ItemSlotLimitRule A rule for a set of slots.LimitedGroupedItemInv LimitedGroupedItemInv.ItemLimitRule A rule that is applied once for everyItemStack
that matches theItemFilter
that was used inLimitedGroupedItemInv.getRule(ItemFilter)
. -
Class Summary Class Description AbstractItemInvView.DefaultChangeTracker GroupedItemInvView.ItemInvStatistic Statistics associated with a singleItemFilter
in a given inventory.ItemAttributes ItemInvAmountChangeListener.MarkDirtyWrapper A simple listener for anItemInvAmountChangeListener
that wraps anInvMarkDirtyListener
.ItemInvUtil Various hooks and methods for dealing with pairs ofFixedItemInv
,FixedItemInvView
,ItemInsertable
,ItemExtractable
, andGroupedItemInvView
instances.ItemInvUtil.MultiMoveResult A pair of ints, representing both the total number of stacks and the total number of items moved byItemInvUtil.moveMultiple(ItemExtractable, ItemInsertable, ItemFilter, int, int)
.ItemStackUtil SingleCopyingItemSlot SingleItemSlot A delegating accessor of a single slot in aFixedItemInv
.SingleItemSlotView A delegating view of a single slot in aFixedItemInvView
. -
Enum Summary Enum Description ItemStackCollections Utility methods for creatingMap
's andSet
's based onItemStack
's.