use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testOnClientRegistered.
@Test
public void testOnClientRegistered() {
FakeWorld world = FakeWorld.newWorld("TestOnClientRegistered");
world.setBlock(0, 0, 0, block);
((Tile) world.getTileEntity(0, 0, 0)).onClientRegistered();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testSetTextureName.
@Test
public void testSetTextureName() {
FakeWorld world = FakeWorld.newWorld("TestSetTextureName");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.setTextureName("texture");
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetRenderColor.
@Test
public void testGetRenderColor() {
FakeWorld world = FakeWorld.newWorld("TestGetRenderColor");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getRenderColor(0);
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testUpdateEntity.
@Test
@Override
public void testUpdateEntity() {
FakeWorld world = FakeWorld.newWorld("testUpdateEntity");
world.setBlock(10, 11, 12, block);
Tile tile = (Tile) world.getTileEntity(10, 11, 12);
//50 seconds of run time
for (int i = 0; i < 1000; i++) {
assertTrue(tile.ticks == i);
tile.updateEntity();
}
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetSaveData.
@Test
public void testGetSaveData() {
FakeWorld world = FakeWorld.newWorld("TestGetSaveData");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
NBTTagCompound tag = tile.getSaveData();
assertTrue(tag != null && !tag.hasNoTags());
}
Aggregations