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

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

public __construct ( Chest $left, Chest $right )
$left pocketmine\tile\Chest
$right pocketmine\tile\Chest
    public function __construct(Chest $left, Chest $right)
    {
        $this->left = $left->getRealInventory();
        $this->right = $right->getRealInventory();
        $items = array_merge($this->left->getContents(true), $this->right->getContents(true));
        BaseInventory::__construct($this, InventoryType::get(InventoryType::DOUBLE_CHEST), $items);
    }