public interface ItemListener
extends java.util.EventListener
Modifier and Type | Method and Description |
---|---|
void |
inventoryAdded(int tag,
int index,
@NotNull 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.
|
void itemChanged(int tag)
tag
- the watched item's tagvoid itemRemoved(int tag)
tag
- the watched item's tagvoid inventoryAdded(int tag, int index, @NotNull @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 index