예제 #1
0
 public function spawnTo(Player $player)
 {
     $pk = $this->addEntityDataPacket($player);
     $pk->type = self::NETWORK_ID;
     $player->dataPacket($pk);
     parent::spawnTo($player);
 }
예제 #2
0
 public function spawnTo(Player $player)
 {
     $pk = $this->addEntityDataPacket($player);
     $pk->type = FishingHook::NETWORK_ID;
     $pk->owner = $this->shootingEntity;
     $player->dataPacket($pk);
     parent::spawnTo($player);
 }