pocketmine\event\inventory\InventoryEvent::__construct PHP Method

__construct() public method

public __construct ( pocketmine\inventory\Inventory $inventory )
$inventory pocketmine\inventory\Inventory
    public function __construct(Inventory $inventory)
    {
        $this->inventory = $inventory;
    }

Usage Example

 /**
  * @param Inventory $inventory
  * @param Arrow     $arrow
  */
 public function __construct(Inventory $inventory, Arrow $arrow)
 {
     $this->arrow = $arrow;
     parent::__construct($inventory);
 }
All Usage Examples Of pocketmine\event\inventory\InventoryEvent::__construct