pocketmine\entity\FishingHook::fishBites PHP Méthode

fishBites() public méthode

public fishBites ( )
    public function fishBites()
    {
        if ($this->shootingEntity instanceof Player) {
            $pk = new EntityEventPacket();
            $pk->eid = $this->shootingEntity->getId();
            //$this or $this->shootingEntity
            $pk->event = EntityEventPacket::FISH_HOOK_HOOK;
            Server::broadcastPacket($this->shootingEntity->hasSpawned, $pk);
        }
    }