use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testOnAdded.
@Test
public void testOnAdded() {
FakeWorld world = FakeWorld.newWorld("TestOnAdded");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.onAdded();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testRegisterIcons.
@Test
public void testRegisterIcons() {
FakeWorld world = FakeWorld.newWorld("TestRegisterIcons");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.registerIcons(new SudoIconReg());
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testXi.
@Test
public void testXi() {
FakeWorld world = FakeWorld.newWorld("TestXi");
world.setBlock(0, 0, 0, block);
TileEntity tile = world.getTileEntity(0, 0, 0);
assertTrue(tile.getClass() == tileClazz);
assertTrue(tile.xCoord == ((T) tile).xi());
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testSendPacketToGuiUsers.
@Test
public void testSendPacketToGuiUsers() {
FakeWorld world = FakeWorld.newWorld("TestSendpacketToGuiUsers");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.sendPacketToGuiUsers(new PacketTile(tile));
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testCanPlaceBlockAt.
@Test
public void testCanPlaceBlockAt() {
FakeWorld world = FakeWorld.newWorld("TestCanplaceBlockAt");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.canPlaceBlockAt();
}
Aggregations