public void renderItemIntoGUI(FontRenderer par1FontRenderer, RenderEngine par2RenderEngine, ItemStack par3ItemStack, int par4, int par5)
    {
        if (par3ItemStack != null)
        {
            IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(par3ItemStack, INVENTORY);
            if (customRenderer != null)
            {
                par2RenderEngine.bindTexture(par2RenderEngine.getTexture(ForgeHooksClient.getTexture(par3ItemStack.itemID < 256 ? "/terrain.png" : "/gui/items.png", Item.itemsList[par3ItemStack.itemID])));
                if (customRenderer.shouldUseRenderHelper(INVENTORY, par3ItemStack, INVENTORY_BLOCK))
                {
                    GL11.glPushMatrix();
                    GL11.glTranslatef((float)(par4 - 2), (float)(par5 + 3), -3.0F + this.zLevel);
                    GL11.glScalef(10F, 10F, 10F);
                    GL11.glTranslatef(1.0F, 0.5F, 1.0F);
                    GL11.glScalef(1.0F, 1.0F, -1F);
                    GL11.glRotatef(210F, 1.0F, 0.0F, 0.0F);
                    GL11.glRotatef(45F, 0.0F, 1.0F, 0.0F);
                    int color = Item.itemsList[par3ItemStack.itemID].getColorFromDamage(par4, 0);
                    float r = (float)(color >> 16 & 0xff) / 255F;
                    float g = (float)(color >> 8 & 0xff) / 255F;
                    float b = (float)(color & 0xff) / 255F;
                    if(field_27004_a)
                    {
                        GL11.glColor4f(r, g, b, 1.0F);
                    }
                    GL11.glRotatef(-90F, 0.0F, 1.0F, 0.0F);
                    renderBlocks.useInventoryTint = field_27004_a;
                    customRenderer.renderItem(INVENTORY, par3ItemStack, renderBlocks);
                    renderBlocks.useInventoryTint = true;
                    GL11.glPopMatrix();
                }
                else
                {
                    GL11.glDisable(GL11.GL_LIGHTING);
                    GL11.glPushMatrix();
                    GL11.glTranslatef((float)(par4), (float)(par5), -3.0F + this.zLevel);

                    int color = Item.itemsList[par3ItemStack.itemID].getColorFromDamage(par4, 0);
                    float r = (float)(color >> 16 & 255) / 255.0F;
                    float g = (float)(color >> 8 & 255) / 255.0F;
                    float b = (float)(color & 255) / 255.0F;

                    if (this.field_27004_a)
                    {
                        GL11.glColor4f(r, g, b, 1.0F);
                    }

                    customRenderer.renderItem(INVENTORY, par3ItemStack, renderBlocks);
                    GL11.glPopMatrix();
                    GL11.glEnable(GL11.GL_LIGHTING);
                }
            }
            else
            {
                this.drawItemIntoGui(par1FontRenderer, par2RenderEngine, par3ItemStack.itemID, par3ItemStack.getItemDamage(), par3ItemStack.getIconIndex(), par4, par5);
            }

            if (par3ItemStack != null && par3ItemStack.hasEffect())
            {
                GL11.glDepthFunc(GL11.GL_GREATER);
                GL11.glDisable(GL11.GL_LIGHTING);
                GL11.glDepthMask(false);
                par2RenderEngine.bindTexture(par2RenderEngine.getTexture("%blur%/misc/glint.png"));
                this.zLevel -= 50.0F;
                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);
                this.func_40266_a(par4 * 431278612 + par5 * 32178161, par4 - 2, par5 - 2, 20, 20);
                GL11.glDisable(GL11.GL_BLEND);
                GL11.glDepthMask(true);
                this.zLevel += 50.0F;
                GL11.glEnable(GL11.GL_LIGHTING);
                GL11.glDepthFunc(GL11.GL_LEQUAL);
            }
        }
    }