GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
Cave Class Reference

Public Member Functions

 populate (ChunkManager $level, $chunkX, $chunkZ, Random $random)
 
- Public Member Functions inherited from Populator
 populate (ChunkManager $level, $chunkX, $chunkZ, Random $random)
 

Member Function Documentation

◆ populate()

populate ( ChunkManager  $level,
  $chunkX,
  $chunkZ,
Random  $random 
)
Parameters
ChunkManager$level
$chunkX
$chunkZ
Random$random
Returns
mixed|void
40  {
41  $overLap = 8;
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++){
50  $dcxx = $dcx + $cxxx;
51  $dczz = $dcz + $czzz;
52  $this->pop($level, $dcxx, $dczz, $dcx, $dcz, new Random(($dcxx * $firstSeed) ^ ($dczz * $secondSeed) ^ $random->getSeed()));
53  }
54  }
55  }
56  }
57  }

The documentation for this class was generated from the following file: