public function __construct($CraftingRepository, $startIndex, $width = 2, $height = 2) { parent::__construct($startIndex, $width * $height + 1, $width, $height); // $this->CraftingRepository = $CraftingRepository; $this->Event->on("WindowChange", function ($index, $value) { $this->handleWindowChange($index, $value); }); }
public function __construct($startIndex) { parent::__construct($startIndex, 4, 1, 4); }