Gets rid of the rest of the modX and modY usages, and removes some unused code
This commit is contained in:
@ -62,7 +62,7 @@ public class BlockLocationTest {
|
||||
@Test
|
||||
public void makeRelativeTest() {
|
||||
BlockLocation location = new BlockLocation(mockWorld, 3, 7, 19);
|
||||
BlockLocation newLocation = location.makeRelative(34, 65, 75);
|
||||
BlockLocation newLocation = location.makeRelativeBlockLocation(34, 65, 75);
|
||||
assertEquals(37, newLocation.getBlockX());
|
||||
assertEquals(72, newLocation.getBlockY());
|
||||
assertEquals(94, newLocation.getBlockZ());
|
||||
@ -82,13 +82,4 @@ public class BlockLocationTest {
|
||||
assertEquals("56,87,34", location.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void modRelativeTest() {
|
||||
BlockLocation location = new BlockLocation(mockWorld, 5, 5, 5);
|
||||
BlockLocation relativeLocation = location.modRelative(4, 2, 1, -1, 1, 0);
|
||||
assertEquals(9, relativeLocation.getBlockX());
|
||||
assertEquals(3, relativeLocation.getBlockY());
|
||||
assertEquals(6, relativeLocation.getBlockZ());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user