@Test public void getChunkBlockIntersection() { assertEquals(-16, RegionUtil.getChunkBlockIntersection(-1, -17)); assertEquals(-16, RegionUtil.getChunkBlockIntersection(-1, -16)); assertEquals(-1, RegionUtil.getChunkBlockIntersection(-1, -1)); assertEquals(-1, RegionUtil.getChunkBlockIntersection(-1, 0)); assertEquals(0, RegionUtil.getChunkBlockIntersection(0, -1)); assertEquals(0, RegionUtil.getChunkBlockIntersection(0, 0)); assertEquals(15, RegionUtil.getChunkBlockIntersection(0, 15)); assertEquals(15, RegionUtil.getChunkBlockIntersection(0, 16)); assertEquals(16, RegionUtil.getChunkBlockIntersection(1, 15)); assertEquals(16, RegionUtil.getChunkBlockIntersection(1, 16)); assertEquals(31, RegionUtil.getChunkBlockIntersection(1, 31)); assertEquals(31, RegionUtil.getChunkBlockIntersection(1, 32)); }