pocketmine\level\Level::setSpawnLocation PHP Method

setSpawnLocation() public method

Sets the level spawn location
public setSpawnLocation ( Vector3 $pos )
$pos pocketmine\math\Vector3
    public function setSpawnLocation(Vector3 $pos)
    {
        $previousSpawn = $this->getSpawnLocation();
        $this->provider->setSpawn($pos);
        $this->server->getPluginManager()->callEvent(new SpawnChangeEvent($this, $previousSpawn));
    }
Level