protected void Func_27265_a(StatCrafting par1StatCrafting, int par2, int par3, bool par4)
 {
     if (par1StatCrafting != null)
     {
         string s = par1StatCrafting.Func_27084_a(GuiStats.GetStatsFileWriter(Field_27269_g).WriteStat(par1StatCrafting));
         Field_27269_g.DrawString(GuiStats.GetFontRenderer(Field_27269_g), s, par2 - (int)GuiStats.GetFontRenderer(Field_27269_g).GetStringWidth(s), par3 + 5, par4 ? 0xffffff : 0x909090);
     }
     else
     {
         string s1 = "-";
         Field_27269_g.DrawString(GuiStats.GetFontRenderer(Field_27269_g), s1, par2 - (int)GuiStats.GetFontRenderer(Field_27269_g).GetStringWidth(s1), par3 + 5, par4 ? 0xffffff : 0x909090);
     }
 }
        protected override void Func_27257_b(int par1, int par2)
        {
            if (par2 < Top || par2 > Bottom)
            {
                return;
            }
            int i = Func_27256_c(par1, par2);
            int j = Field_27269_g.Width / 2 - 92 - 16;

            if (i >= 0)
            {
                if (par1 < j + 40 || par1 > j + 40 + 20)
                {
                    return;
                }
                StatCrafting statcrafting = Func_27264_b(i);
                Func_27267_a(statcrafting, par1, par2);
            }
            else
            {
                string s = "";
                if (par1 >= (j + 115) - 18 && par1 <= j + 115)
                {
                    s = Func_27263_a(0);
                }
                else if (par1 >= (j + 165) - 18 && par1 <= j + 165)
                {
                    s = Func_27263_a(1);
                }
                else if (par1 >= (j + 215) - 18 && par1 <= j + 215)
                {
                    s = Func_27263_a(2);
                }
                else
                {
                    return;
                }
                s = (new StringBuilder()).Append("").Append(StringTranslate.GetInstance().TranslateKey(s)).ToString().Trim();
                if (s.Length > 0)
                {
                    int k  = par1 + 12;
                    int l  = par2 - 12;
                    int i1 = GuiStats.GetFontRenderer(Field_27269_g).GetStringWidth(s);
                    GuiStats.DrawGradientRect(Field_27269_g, k - 3, l - 3, k + i1 + 3, l + 8 + 3, 0xc000000, 0xc000000);
                    GuiStats.GetFontRenderer(Field_27269_g).DrawStringWithShadow(s, k, l, -1);
                }
            }
        }
        protected void Func_27267_a(StatCrafting par1StatCrafting, int par2, int par3)
        {
            if (par1StatCrafting == null)
            {
                return;
            }
            Item   item = Item.ItemsList[par1StatCrafting.GetItemID()];
            string s    = new StringBuilder().Append("").Append(StringTranslate.GetInstance().TranslateNamedKey(item.GetItemName())).ToString().Trim();

            if (s.Length > 0)
            {
                int i = par2 + 12;
                int j = par3 - 12;
                int k = GuiStats.GetFontRenderer(Field_27269_g).GetStringWidth(s);
                GuiStats.DrawGradientRect(Field_27269_g, i - 3, j - 3, i + k + 3, j + 8 + 3, 0xc000000, 0xc000000);
                GuiStats.GetFontRenderer(Field_27269_g).DrawStringWithShadow(s, i, j, -1);
            }
        }