use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetOwnerProfile.
@Test
public void testGetOwnerProfile() {
FakeWorld world = FakeWorld.newWorld("TestGetOwnerprofile");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getOwnerProfile();
}
use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testDetermineOrientation.
@Test
public void testDetermineOrientation() {
FakeWorld world = FakeWorld.newWorld("TestDetermineOrientation");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.determineOrientation(player);
//TODO maybe check to ensure direction is valid
}
use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testOnPlayerActivated.
@Test
public void testOnPlayerActivated() {
world.setBlock(0, 0, 0, block);
Tile tile = (Tile) world.getTileEntity(0, 0, 0);
for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
//We divide the face of the tile into 16 sub sections
for (int i = 0; i <= 256; i++) {
tile.onPlayerActivated(player, dir.ordinal(), getNextClick(dir, i));
}
}
}
Aggregations