use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetpickBlock.
@Test
public void testGetpickBlock() {
FakeWorld world = FakeWorld.newWorld("TestGetpickBlock");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
for (int i = 0; i < 256; i++) {
tile.getPickBlock(new MovingObjectPosition(0, 0, 0, dir.ordinal(), getNextClick(dir, i).toVec3(), true));
}
}
}
use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testSendDescpacket.
@Test
public void testSendDescpacket() {
FakeWorld world = FakeWorld.newWorld("TestSendDescpacket");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
if (tile.getDescPacket() != null) {
//tile.sendDescPacket();
}
}
use of com.builtbroken.mc.prefab.tile.Tile 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.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetExplosionResistance.
@Test
public void testGetExplosionResistance() {
FakeWorld world = FakeWorld.newWorld("TestGetExplosionResistance");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getExplosionResistance(player);
world.setBlock(0, 0, 0, block);
tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getExplosionResistance(player, new Pos(2));
}
use of com.builtbroken.mc.prefab.tile.Tile in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetLightValue.
@Test
public void testGetLightValue() {
FakeWorld world = FakeWorld.newWorld("TestGetLightValue");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getLightValue();
}
Aggregations