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
파일: Level.php 프로젝트: xHFx/Steadfast2
 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;
 }