InventoryListener
Classes implementing this interface can be injected into inventories to receive notifications when content changes occur.
Methods
onContentChange()
php
public function onContentChange(\pocketmine\inventory\Inventory $inventory, array $oldContents) : voidonSlotChange()
php
public function onSlotChange(\pocketmine\inventory\Inventory $inventory, int $slot, \pocketmine\item\Item $oldItem) : void