pocketmine\entity\FishingHook::attractFish PHP Method

attractFish() public method

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