use of net.countercraft.movecraft.util.hitboxes.SolidHitBox in project Movecraft by APDevTeam.
the class TreeHitBoxTest method testCloneBounds.
@Test
public void testCloneBounds() {
SolidHitBox solid = new SolidHitBox(new MovecraftLocation(-3, -3, -3), new MovecraftLocation(3, 3, 3));
SetHitBox box = new SetHitBox(solid);
assertEquals(-3, box.getMinX(), "X");
assertEquals(-3, box.getMinY(), "Y");
assertEquals(-3, box.getMinZ(), "Z");
assertEquals(3, box.getMaxX());
assertEquals(3, box.getMaxY());
assertEquals(3, box.getMaxZ());
}
Aggregations