use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testOnPlaced.
@Test
public void testOnPlaced() {
FakeWorld world = FakeWorld.newWorld("TestOnplaced");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.onPlaced(player, new ItemStack(block));
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetStrongestIndirectpower.
@Test
public void testGetStrongestIndirectpower() {
FakeWorld world = FakeWorld.newWorld("TestGetStrongestIndirectpower");
world.setBlock(0, 0, 0, block);
((Tile) world.getTileEntity(0, 0, 0)).getStrongestIndirectPower();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetBlockMetadata.
@Test
public void testGetBlockMetadata() {
FakeWorld world = FakeWorld.newWorld("TestGetBlockMetadata");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getBlockMetadata();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testSetOwner.
@Test
public void testSetOwner() {
FakeWorld world = FakeWorld.newWorld("TestSetOwner");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.setOwner(player);
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetCollisionBounds.
@Test
public void testGetCollisionBounds() {
FakeWorld world = FakeWorld.newWorld("TestGetCollisionBounds");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
Cube cube = tile.getCollisionBounds();
if (cube != null) {
//TODO test too see if cube is valid
}
}
Aggregations