Interface ItemAccess

All Known Implementing Classes:
HandlerItemAccess, InfiniteMaterialsItemAccess, OneByOneItemAccess, PlayerItemAccess, StackItemAccess

public interface ItemAccess
Provides access to an item storage location, like a slot in an inventory or a player's hand, such that the current item resource and amount can be read, and the stored item can be changed.

This interface is primarily used as the context type C for item capabilities. This allows the returned capability instance to modify the current item or even swap out the item entirely, for example to replace an empty bucket by a filled bucket. Use the getCapability(ItemCapability) method to query a capability for the item referenced by an item access.