InventoryListener
in
Classes implementing this interface can be injected into inventories to receive notifications when content changes occur.
Tags
Table of Contents
- onContentChange() : void
- onSlotChange() : void
Methods
onContentChange()
public
onContentChange(Inventory $inventory, array<string|int, Item> $oldContents) : void
Parameters
Return values
void —onSlotChange()
public
onSlotChange(Inventory $inventory, int $slot, Item $oldItem) : void