pocketmine\inventory\CraftingInventory::__construct PHP Метод

__construct() публичный Метод

public __construct ( pocketmine\inventory\InventoryHolder $holder, pocketmine\inventory\Inventory $resultInventory, InventoryType $inventoryType )
$holder pocketmine\inventory\InventoryHolder
$resultInventory pocketmine\inventory\Inventory
$inventoryType InventoryType
    public function __construct(InventoryHolder $holder, Inventory $resultInventory, InventoryType $inventoryType)
    {
        if ($inventoryType->getDefaultTitle() !== "Crafting") {
            throw new \InvalidStateException("Invalid Inventory type, expected CRAFTING or WORKBENCH");
        }
        $this->resultInventory = $resultInventory;
        parent::__construct($holder, $inventoryType);
    }