pocketmine\entity\EnderSignal::onUpdate PHP Метод

onUpdate() публичный Метод

public onUpdate ( $currentTick )
    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;
    }