public function isValid($slot, $index)
 {
     if ($slot->isEmpty()) {
         return true;
     } else {
         return parent::isValid($slot, $index);
     }
 }
 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);
     });
 }