use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetDescpacket.
@Test
public void testGetDescpacket() {
FakeWorld world = FakeWorld.newWorld("TestGetDescpacket");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getDescPacket();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testRemoveByplayer.
@Test
public void testRemoveByplayer() {
FakeWorld world = FakeWorld.newWorld("TestRemoveByplayer");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.removeByPlayer(player, true);
world.setBlock(0, 0, 0, block);
tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.removeByPlayer(player, false);
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testOnCollide.
@Test
public void testOnCollide() {
FakeWorld world = FakeWorld.newWorld("TestOnCollide");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.onCollide(player);
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetAccess.
@Test
public void testGetAccess() {
FakeWorld world = FakeWorld.newWorld("TestGetAccess");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
assertTrue(tile.getAccess() == world);
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetExplosionResistance.
@Test
public void testGetExplosionResistance() {
FakeWorld world = FakeWorld.newWorld("TestGetExplosionResistance");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getExplosionResistance(player);
world.setBlock(0, 0, 0, block);
tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getExplosionResistance(player, new Pos(2));
}
Aggregations