use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileEntityTest method testGetBlockType.
@Test
public void testGetBlockType() {
FakeWorld world = FakeWorld.newWorld("testGetBlockType");
world.setBlock(10, 11, 12, block);
assertTrue(world.getTileEntity(10, 11, 12).getBlockType() == block);
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetDrops.
@Test
public void testGetDrops() {
FakeWorld world = FakeWorld.newWorld("TestGetDrops");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
List<ItemStack> items = tile.getDrops(0, 0);
for (ItemStack stack : items) {
assertTrue(stack != null);
assertTrue(stack.getItem() != null);
// TODO check for creative mod only items
}
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testDoUpdateGuiUsers.
@Test
public void testDoUpdateGuiUsers() {
// Testing for no crashes during method call
FakeWorld world = FakeWorld.newWorld("TestDoUpdateGuiUsers");
world.setBlock(0, 0, 0, block);
Tile tile = (Tile) world.getTileEntity(0, 0, 0);
tile.doUpdateGuiUsers();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testSendpacketToServer.
@Test
public void testSendpacketToServer() {
FakeWorld world = FakeWorld.newWorld("TestSendpacketToServer");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.sendPacketToServer(new PacketTile(tile));
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testIsSolid.
@Test
public void testIsSolid() {
FakeWorld world = FakeWorld.newWorld("TestIsSolid");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
for (int i = 0; i < 6; i++) {
tile.isSolid(i);
}
}
Aggregations