use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetRenderBlockpass.
@Test
public void testGetRenderBlockpass() {
FakeWorld world = FakeWorld.newWorld("TestGetRenderBlockpass");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getRenderBlockPass();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testScheduleTick.
@Test
public void testScheduleTick() {
FakeWorld world = FakeWorld.newWorld("TestScheduleTick");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
try {
Method method = Tile.class.getDeclaredMethod("scheduleTick", Integer.TYPE);
method.setAccessible(true);
method.invoke(tile, 0);
} catch (NoSuchMethodException e) {
fail("Could not find method scheduleTick");
} catch (InvocationTargetException e) {
e.printStackTrace();
fail("Failed to invoke method scheduleTick");
} catch (IllegalAccessException e) {
fail("Couldn't access method scheduleTick");
}
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testDetermineForgeDirection.
@Test
public void testDetermineForgeDirection() {
FakeWorld world = FakeWorld.newWorld("TestDetermineForgeDirection");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.determineForgeDirection(player);
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetOwnerID.
@Test
public void testGetOwnerID() {
FakeWorld world = FakeWorld.newWorld("TestGetOwnerID");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getOwnerID();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetCollisionBoxes.
@Test
public void testGetCollisionBoxes() {
FakeWorld world = FakeWorld.newWorld("TestGetCollisionBoxes");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
Iterable<Cube> cubes = tile.getCollisionBoxes(new Cube(-2, -2, -2, 2, 2, 2), player);
assertTrue(cubes != null);
for (Cube cube : cubes) {
assertTrue(cube != null);
//TODO check if the cube is valid
}
}
Aggregations