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

public close ( )
Пример #1
0
 public function close()
 {
     if ($this->getAutoSave()) {
         $this->save();
     }
     $this->provider->close();
 }
Пример #2
0
 public function close()
 {
     if ($this->getAutoSave()) {
         $this->save();
     }
     foreach ($this->chunks as $chunk) {
         $this->unloadChunk($chunk->getX(), $chunk->getZ(), false);
     }
     $this->provider->close();
     $this->provider = null;
     $this->blockMetadata = null;
     $this->blockCache = [];
     $this->temporalPosition = null;
 }
Пример #3
0
 public function close()
 {
     if ($this->getAutoSave()) {
         $this->save();
     }
     foreach ($this->chunks as $chunk) {
         $this->unloadChunk($chunk->getX(), $chunk->getZ(), \false);
     }
     $this->server->getGenerationManager()->closeLevel($this);
     $this->provider->close();
     $this->provider = \null;
     $this->blockMetadata = \null;
     $this->blockCache = [];
     $this->temporalPosition = \null;
 }