|
PocketMine-MP 5.39.4 git-a2b7d660558310260c376d1eeaff549367b9fc6e
|
Inheritance diagram for pocketmine\inventory\InventoryListener:
Collaboration diagram for pocketmine\inventory\InventoryListener:Public Member Functions | |
| onContentChange (Inventory $inventory, array $oldContents) | |
| onSlotChange (Inventory $inventory, int $slot, Item $oldItem) | |
Classes implementing this interface can be injected into inventories to receive notifications when content changes occur.
Definition at line 34 of file InventoryListener.php.
| pocketmine\inventory\InventoryListener::onContentChange | ( | Inventory | $inventory, |
| array | $oldContents ) |
| Item[] | $oldContents |
Implemented in pocketmine\inventory\CallbackInventoryListener, and pocketmine\network\mcpe\InventoryManager.