public interface ItemListener
Interface for listeners for changes of item locations.
Method Summary | |
---|---|
void |
inventoryAdded(int tag,
int index,
CfItem item)
An inventory CfItem has been added to the watched item. |
void |
inventoryRemoved(int tag,
int index)
An inventory item has been removed from the watched item. |
void |
itemChanged(int tag)
The watched item has changed. |
void |
itemRemoved(int tag)
The watched item has been removed from the location. |
Method Detail |
---|
void inventoryAdded(int tag, int index, @NotNull CfItem item)
CfItem
has been added to the watched item.
tag
- the watched item's tagindex
- the inventory indexitem
- the inventory itemvoid inventoryRemoved(int tag, int index)
tag
- the watched item's tagindex
- the inventory indexvoid itemChanged(int tag)
tag
- the watched item's tagvoid itemRemoved(int tag)
tag
- the watched item's tag