private int coordToRegionOffset(int x, int z) {
		// "%" modulus is used to convert potential world coordinates to
		// definitely be local region coordinates
		x = x % 32;
		z = z % 32;
		// similarly, for local coordinates, we need to wrap negative values
		// around
		if (x < 0)
			x += 32;
		if (z < 0)
			z += 32;
		// return offset position for the now definitely local x and z values
		return (x + (z * 32));
	}