Search in sources :

Example 1 with TileEntityExplosive

use of icbm.classic.content.explosive.tile.TileEntityExplosive in project ICBM-Classic by BuiltBrokenModding.

the class RenderBombBlock method renderTileEntityAt.

@Override
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float f) {
    if (tileEntity instanceof TileEntityExplosive) {
        Explosive explosive = ((TileEntityExplosive) tileEntity).explosive.handler;
        if (explosive != null && explosive.getBlockModel() != null && explosive.getBlockResource() != null) {
            GL11.glPushMatrix();
            GL11.glTranslated(x + 0.5f, y + 1.5f, z + 0.5f);
            GL11.glRotatef(180f, 0f, 0f, 1f);
            FMLClientHandler.instance().getClient().renderEngine.bindTexture(explosive.getBlockResource());
            explosive.getBlockModel().render(0.0625f);
            RenderUtility.setTerrainTexture();
            GL11.glPopMatrix();
        }
    }
}
Also used : Explosive(icbm.classic.content.explosive.Explosive) TileEntityExplosive(icbm.classic.content.explosive.tile.TileEntityExplosive) TileEntityExplosive(icbm.classic.content.explosive.tile.TileEntityExplosive)

Aggregations

Explosive (icbm.classic.content.explosive.Explosive)1 TileEntityExplosive (icbm.classic.content.explosive.tile.TileEntityExplosive)1