use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetStrongRedstonePower.
@Test
public void testGetStrongRedstonePower() {
FakeWorld world = FakeWorld.newWorld("TestGetStrongRedstonepower");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
for (int i = 0; i < 6; i++) {
tile.getStrongRedstonePower(i);
}
}
use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testCanSilkHarvest.
@Test
public void testCanSilkHarvest() {
FakeWorld world = FakeWorld.newWorld("TestCanSilkHarvest");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.canSilkHarvest(player, 0);
}
use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testMarkUpdate.
@Test
public void testMarkUpdate() {
FakeWorld world = FakeWorld.newWorld("TestMarkUpdate");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
try {
Method method = Tile.class.getDeclaredMethod("markUpdate");
method.setAccessible(true);
method.invoke(tile);
} catch (NoSuchMethodException e) {
fail("Could not find method markUpdate");
} catch (InvocationTargetException e) {
e.printStackTrace();
fail("Failed to invoke method markUpdate");
} catch (IllegalAccessException e) {
fail("Couldn't access method markUpdate");
}
}
use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetRenderBlockpass.
@Test
public void testGetRenderBlockpass() {
FakeWorld world = FakeWorld.newWorld("TestGetRenderBlockpass");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getRenderBlockPass();
}
use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testScheduleTick.
@Test
public void testScheduleTick() {
FakeWorld world = FakeWorld.newWorld("TestScheduleTick");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
try {
Method method = Tile.class.getDeclaredMethod("scheduleTick", Integer.TYPE);
method.setAccessible(true);
method.invoke(tile, 0);
} catch (NoSuchMethodException e) {
fail("Could not find method scheduleTick");
} catch (InvocationTargetException e) {
e.printStackTrace();
fail("Failed to invoke method scheduleTick");
} catch (IllegalAccessException e) {
fail("Couldn't access method scheduleTick");
}
}
Aggregations