public function getDrops() { $drops = []; if ($this->inventory !== null) { foreach ($this->inventory->getContents() as $item) { $drops[] = $item; } } return $drops; }
public function getDrops() { if (!$this->isCreative()) { return parent::getDrops(); } return []; }