◆ populate()
- Parameters
-
- Returns
- mixed|void
42 $firstSeed = $random->nextInt();
43 $secondSeed = $random->nextInt();
44 for($cxx = 0; $cxx < 1; $cxx++){
45 for($czz = 0; $czz < 1; $czz++){
46 $dcx = $chunkX + $cxx;
47 $dcz = $chunkZ + $czz;
48 for($cxxx = -$overLap; $cxxx <= $overLap; $cxxx++){
49 for($czzz = -$overLap; $czzz <= $overLap; $czzz++){
52 $this->pop($level, $dcxx, $dczz, $dcx, $dcz,
new Random(($dcxx * $firstSeed) ^ ($dczz * $secondSeed) ^ $random->getSeed()));
The documentation for this class was generated from the following file:
- src/pocketmine/level/generator/populator/Cave.php