PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
getSlotValidators () | |
A "slot validated inventory" has validators which may restrict items from being placed in particular slots of the inventory when transactions are executed.
@phpstan-type SlotValidators ObjectSet<SlotValidator>
Definition at line 35 of file SlotValidatedInventory.php.
pocketmine\inventory\SlotValidatedInventory::getSlotValidators | ( | ) |
Returns a set of validators that will be used to determine whether an item can be placed in a particular slot. All validators need to return null for the transaction to be allowed. If one of the validators returns an exception, the transaction will be cancelled.
There is no guarantee that the validators will be called in any particular order.
@phpstan-return SlotValidators
Implemented in pocketmine\inventory\BaseInventory.