pocketmine\level\ChunkManager::getBlockIdAt PHP Méthode

getBlockIdAt() public méthode

Gets the raw block id.
public getBlockIdAt ( integer $x, integer $y, integer $z ) : integer
$x integer
$y integer
$z integer
Résultat integer 0-255
    public function getBlockIdAt(int $x, int $y, int $z) : int;

Usage Example

Exemple #1
0
 private function getHighestWorkableBlock($x, $z)
 {
     for ($y = 0; $y <= 127; ++$y) {
         $b = $this->level->getBlockIdAt($x, $y, $z);
         if ($b == Block::AIR) {
             break;
         }
     }
     return $y === 0 ? -1 : $y;
 }
All Usage Examples Of pocketmine\level\ChunkManager::getBlockIdAt