コード例 #1
0
ファイル: Flat.php プロジェクト: boybook/PocketMine-MP
 public function populateChunk($chunkX, $chunkZ)
 {
     $this->random->setSeed(0xdeadbeef ^ $chunkX << 8 ^ $chunkZ ^ $this->level->getSeed());
     foreach ($this->populators as $populator) {
         $populator->populate($this->level, $chunkX, $chunkZ, $this->random);
     }
 }
コード例 #2
0
 public function getSpawn()
 {
     return $this->level->getSafeSpawn(new Vector3(127.5, 128, 127.5));
 }