CallbackInventoryListener
Implements InventoryListener
Methods
__construct()
php
public function __construct(?\Closure $onSlotChange, ?\Closure $onContentChange)onAnyChange()
php
public static function onAnyChange(\Closure $onChange) : selfonContentChange()
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