pocketmine\inventory\Transaction::getSlot PHP Method

getSlot() public method

public getSlot ( ) : integer
return integer
    public function getSlot();

Usage Example

Example #1
0
 public function processSlotChange(Transaction $transaction) : bool
 {
     if ($transaction->getSlot() === $this->getResultSlotIndex()) {
         return false;
     }
     return true;
 }