public function getDrops() { $drops = []; if ($this->inventory instanceof PlayerInventory) { foreach ($this->inventory->getContents() as $item) { $drops[] = $item; } foreach ($this->inventory->getArmorContents() as $item) { $drops[] = $item; } } return $drops; }