public function onUpdate($currentTick)
{
if ($this->closed) {
return false;
}
$this->timings->startTiming();
$hasUpdate = parent::onUpdate($currentTick);
if ($this->age > 50) {
$this->kill();
$hasUpdate = true;
$this->getLevel()->dropItem($this, ItemItem::get(ItemItem::EYE_OF_ENDER), $this);
}
$this->timings->stopTiming();
return $hasUpdate;
}