public function getCreativeItemIndex(Item $item) : int { foreach ($this->personalCreativeItems as $i => $d) { if ($item->equals($d, !$item->isTool())) { return $i; } } return -1; }