Skip to content

InventoryListener ​

interface · pocketmine\inventory\InventoryListener · source

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) : 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.