Exemplo n.º 1
0
 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);
   }
 }
Exemplo n.º 2
0
 protected void func_27265_a(StatCrafting statcrafting, int i, int j, boolean flag) {
   if (statcrafting != null) {
     String s =
         statcrafting.func_27084_a(
             GuiStats.func_27142_c(field_27269_g).func_27184_a(statcrafting));
     field_27269_g.func_547_b(
         GuiStats.func_27133_h(field_27269_g),
         s,
         i - GuiStats.func_27137_i(field_27269_g).func_871_a(s),
         j + 5,
         flag ? 0xffffff : 0x909090);
   } else {
     String s1 = "-";
     field_27269_g.func_547_b(
         GuiStats.func_27132_j(field_27269_g),
         s1,
         i - GuiStats.func_27134_k(field_27269_g).func_871_a(s1),
         j + 5,
         flag ? 0xffffff : 0x909090);
   }
 }