PocketMine-MP 5.23.3 git-976fc63567edab7a6fb6aeae739f43cf9fe57de4
Loading...
Searching...
No Matches
pocketmine\inventory\SlotValidatedInventory Interface Reference
+ Inheritance diagram for pocketmine\inventory\SlotValidatedInventory:
+ Collaboration diagram for pocketmine\inventory\SlotValidatedInventory:

Public Member Functions

 getSlotValidators ()
 

Detailed Description

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.

Member Function Documentation

◆ getSlotValidators()

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.


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