use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testZ.
@Test
public void testZ() {
FakeWorld world = FakeWorld.newWorld("TestZ");
world.setBlock(0, 0, 0, block);
TileEntity tile = world.getTileEntity(0, 0, 0);
assertTrue(tile.getClass() == tileClazz);
assertTrue(tile.zCoord == (int) ((T) tile).z());
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testOnRegistered.
@Test
public void testOnRegistered() {
FakeWorld world = FakeWorld.newWorld("TestOnRegistered");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.onRegistered();
}
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 testSetOwnerID.
@Test
public void testSetOwnerID() {
FakeWorld world = FakeWorld.newWorld("TestSetOwnerID");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.setOwnerID(player.getGameProfile().getId());
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileEntityTest method testMarkDirty.
@Test
public void testMarkDirty() {
FakeWorld world = FakeWorld.newWorld("testMarkDirty");
world.setBlock(10, 11, 12, block);
world.getTileEntity(10, 11, 12).markDirty();
}
Aggregations