@SuppressWarnings("deprecation")
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data)
{
RenderEngine renderEngine = Minecraft.getMinecraft().renderEngine;
RenderBlocks renderer = (RenderBlocks)data[0];
BlockFactoryGlassPane pane = (BlockFactoryGlassPane)Block.blocksList[((ItemBlock)item.getItem()).getBlockID()];
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_CULL_FACE);
Tessellator tessellator = Tessellator.instance;
if(type == ItemRenderType.INVENTORY)
{
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glScalef(16f, 16f, 16f);
GL11.glTranslatef(0.5f, 0.5f, 0.5f);
RenderingRegistry.instance().renderInventoryBlock(renderer, pane, item.getItemDamage(), MineFactoryReloadedCore.renderIdFactoryGlassPane);
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
GL11.glScalef(1 / 16f, 1 / 16f, 1 / 16f);
if (item.hasEffect())
{
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glDepthFunc(GL11.GL_GREATER);
GL11.glDepthMask(false);
renderEngine.bindTexture("%blur%/misc/glint.png");
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
GL11.glColor4f(0.5F, 0.25F, 0.8F, 1.0F);
GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
float f = 0.00390625F;