pocketmine\tile\Spawnable::spawnToAll PHP Метод

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

public spawnToAll ( )
    public function spawnToAll()
    {
        if ($this->closed) {
            return;
        }
        foreach ($this->getLevel()->getChunkPlayers($this->chunk->getX(), $this->chunk->getZ()) as $player) {
            if ($player->spawned === true) {
                $this->spawnTo($player);
            }
        }
    }