PocketMine-MP 5.28.3 git-a4ac28592c6c5f5876927aa2a140b65dad63d786
Loading...
Searching...
No Matches
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: