Skip to content

CallbackInventoryListener ​

class · pocketmine\inventory\CallbackInventoryListener · source

Implements InventoryListener

Methods ​

__construct() ​

php
public function __construct(?\Closure $onSlotChange, ?\Closure $onContentChange)

onAnyChange() ​

php
public static function onAnyChange(\Closure $onChange) : self

onContentChange() ​

php
public function onContentChange(\pocketmine\inventory\Inventory $inventory, array $oldContents) : void

onSlotChange() ​

php
public function onSlotChange(\pocketmine\inventory\Inventory $inventory, int $slot, \pocketmine\item\Item $oldItem) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.