◆ populate()
- Parameters
-
- Returns
- mixed|void
44 $this->level = $level;
45 $type =
new OreType(
new Glowstone(), 1, 20, 128, 10);
46 $ore =
new ObjectOre($random, $type);
47 for($i = 0; $i < $ore->type->clusterCount; ++$i){
48 $x = $random->nextRange($chunkX << 4, ($chunkX << 4) + 15);
49 $z = $random->nextRange($chunkZ << 4, ($chunkZ << 4) + 15);
50 $y = $this->getHighestWorkableBlock($x, $z);
51 $ore->placeObject($level, $x, $y, $z);
The documentation for this class was generated from the following file:
- src/pocketmine/level/generator/populator/NetherGlowStone.php