public function getFullBlock($x, $y, $z) { $i = $x << 11 | $z << 7 | $y; if (($y & 1) === 0) { return ord($this->blocks[$i]) << 4 | ord($this->data[$i >> 1]) & 0xf; } else { return ord($this->blocks[$i]) << 4 | ord($this->data[$i >> 1]) >> 4; } }