use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testDetermineForgeDirection.
@Test
public void testDetermineForgeDirection() {
FakeWorld world = FakeWorld.newWorld("TestDetermineForgeDirection");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.determineForgeDirection(player);
}
use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetOwnerID.
@Test
public void testGetOwnerID() {
FakeWorld world = FakeWorld.newWorld("TestGetOwnerID");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getOwnerID();
}
use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetCollisionBoxes.
@Test
public void testGetCollisionBoxes() {
FakeWorld world = FakeWorld.newWorld("TestGetCollisionBoxes");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
Iterable<Cube> cubes = tile.getCollisionBoxes(new Cube(-2, -2, -2, 2, 2, 2), player);
assertTrue(cubes != null);
for (Cube cube : cubes) {
assertTrue(cube != null);
//TODO check if the cube is valid
}
}
use of com.builtbroken.mc.prefab.tile.Tile 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.prefab.tile.Tile 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());
}
Aggregations