PocketMine-MP 5.15.1 git-be6754494fdbbb9dd57c058ba0e33a4a78c4581f
pocketmine\inventory\InventoryListener Interface Reference
+ 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)
 

Detailed Description

Classes implementing this interface can be injected into inventories to receive notifications when content changes occur.

See also
CallbackInventoryListener for a closure-based listener
Inventory::getListeners()

Definition at line 34 of file InventoryListener.php.

Member Function Documentation

◆ onContentChange()

pocketmine\inventory\InventoryListener::onContentChange ( Inventory  $inventory,
array  $oldContents 
)
Parameters
Item[]$oldContents

Implemented in pocketmine\inventory\CallbackInventoryListener.


The documentation for this interface was generated from the following file: