public static int getRotatedMapChunkY(int y, int rotation, int x) {
		rotation &= 3;
		if (rotation == 0) {
			return y;
		}
		if (rotation == 1) {
			return 7 - x;
		}
		if (rotation == 2) {
			return 7 - y;
		} else {
			return x;
		}
	}