pocketmine\level\SimpleChunkManager::getBlockDataAt PHP Method

getBlockDataAt() public method

Gets the raw block metadata
public getBlockDataAt ( integer $x, integer $y, integer $z ) : integer
$x integer
$y integer
$z integer
return integer 0-15
    public function getBlockDataAt(int $x, int $y, int $z) : int
    {
        if ($chunk = $this->getChunk($x >> 4, $z >> 4)) {
            return $chunk->getBlockData($x & 0xf, $y & 0x7f, $z & 0xf);
        }
        return 0;
    }