public int func_27371_a(StatCrafting statcrafting, StatCrafting statcrafting1) {
   int i = statcrafting.func_25072_b();
   int j = statcrafting1.func_25072_b();
   StatBase statbase = null;
   StatBase statbase1 = null;
   if (field_27372_b.field_27271_e == 0) {
     statbase = StatList.field_25170_B[i];
     statbase1 = StatList.field_25170_B[j];
   } else if (field_27372_b.field_27271_e == 1) {
     statbase = StatList.field_25158_z[i];
     statbase1 = StatList.field_25158_z[j];
   } else if (field_27372_b.field_27271_e == 2) {
     statbase = StatList.field_25172_A[i];
     statbase1 = StatList.field_25172_A[j];
   }
   if (statbase != null || statbase1 != null) {
     if (statbase == null) {
       return 1;
     }
     if (statbase1 == null) {
       return -1;
     }
     int k = GuiStats.func_27142_c(field_27372_b.field_27275_a).func_27184_a(statbase);
     int l = GuiStats.func_27142_c(field_27372_b.field_27275_a).func_27184_a(statbase1);
     if (k != l) {
       return (k - l) * field_27372_b.field_27270_f;
     }
   }
   return i - j;
 }
 protected void func_27267_a(StatCrafting statcrafting, int i, int j) {
   if (statcrafting == null) {
     return;
   }
   Item item = Item.field_233_c[statcrafting.func_25072_b()];
   String s =
       (new StringBuilder())
           .append("")
           .append(StringTranslate.func_20162_a().func_20161_b(item.func_20009_a()))
           .toString()
           .trim();
   if (s.length() > 0) {
     int k = i + 12;
     int l = j - 12;
     int i1 = GuiStats.func_27127_n(field_27269_g).func_871_a(s);
     GuiStats.func_27135_b(
         field_27269_g, k - 3, l - 3, k + i1 + 3, l + 8 + 3, 0xc0000000, 0xc0000000);
     GuiStats.func_27131_o(field_27269_g).func_874_a(s, k, l, -1);
   }
 }