pocketmine\level\Level::getHighestBlockAt PHP Method

getHighestBlockAt() public method

Gets the highest block Y value at a specific $x and $z
public getHighestBlockAt ( integer $x, integer $z ) : integer
$x integer
$z integer
return integer 0-127
    public function getHighestBlockAt(int $x, int $z) : int
    {
        return $this->getChunk($x >> 4, $z >> 4, true)->getHighestBlockAt($x & 0xf, $z & 0xf);
    }
Level