public function onUpdate($currentTick)
{
if ($this->closed) {
return false;
}
$this->timings->startTiming();
$hasUpdate = parent::onUpdate($currentTick);
if ($this->age > 1200 or $this->isCollided) {
$this->kill();
$hasUpdate = true;
//Chance to spawn chicken
}
$this->timings->stopTiming();
return $hasUpdate;
}