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

public setSpawn ( Vector3 $pos )
$pos pocketmine\math\Vector3
Пример #1
0
 /**
  * Sets the level spawn location
  *
  * @param Vector3 $pos
  */
 public function setSpawnLocation(Vector3 $pos)
 {
     $previousSpawn = $this->getSpawnLocation();
     $this->provider->setSpawn($pos);
     $this->server->getPluginManager()->callEvent(new SpawnChangeEvent($this, $previousSpawn));
 }