public function setBlockId($x, $y, $z, $id) { $this->blocks[$x << 11 | $z << 7 | $y] = chr($id); $this->hasChanged = true; }