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_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); } }