public int[] func_110372_a(String var1) {
    C_100087_bco var2 = this.field_110394_k.func_105667_e();
    int[] var3 = (int[]) this.field_110387_d.get(var1);
    if (var3 != null) {
      return var3;
    } else {
      try {
        Object var4 = null;
        int[] var7;
        if (var1.startsWith("##")) {
          var7 =
              this.func_110374_b(
                  this.func_110384_c(this.func_110371_a(var2.func_105627_a(var1.substring(2)))));
        } else if (var1.startsWith("%clamp%")) {
          this.field_110391_a = true;
          var7 = this.func_110374_b(this.func_110371_a(var2.func_105627_a(var1.substring(7))));
          this.field_110391_a = false;
        } else if (var1.startsWith("%blur%")) {
          this.field_110389_b = true;
          this.field_110391_a = true;
          var7 = this.func_110374_b(this.func_110371_a(var2.func_105627_a(var1.substring(6))));
          this.field_110391_a = false;
          this.field_110389_b = false;
        } else {
          InputStream var8 = var2.func_105627_a(var1);
          if (var8 == null) {
            var7 = this.func_110374_b(this.field_110392_l);
          } else {
            var7 = this.func_110374_b(this.func_110371_a(var8));
          }
        }

        this.field_110387_d.put(var1, var7);
        return var7;
      } catch (IOException var6) {
        var6.printStackTrace();
        int[] var5 = this.func_110374_b(this.field_110392_l);
        this.field_110387_d.put(var1, var5);
        return var5;
      }
    }
  }
  public int func_110367_b(String var1) {
    Integer var2 = (Integer) this.field_110390_c.get(var1);
    if (var2 != null) {
      return var2.intValue();
    } else {
      C_100087_bco var6 = this.field_110394_k.func_105667_e();

      try {
        this.field_110385_f.clear();
        C_101209_aqk.func_112005_a(this.field_110385_f);
        int var3 = this.field_110385_f.get(0);
        if (var1.startsWith("##")) {
          this.func_110379_a(
              this.func_110384_c(this.func_110371_a(var6.func_105627_a(var1.substring(2)))), var3);
        } else if (var1.startsWith("%clamp%")) {
          this.field_110391_a = true;
          this.func_110379_a(this.func_110371_a(var6.func_105627_a(var1.substring(7))), var3);
          this.field_110391_a = false;
        } else if (var1.startsWith("%blur%")) {
          this.field_110389_b = true;
          this.func_110379_a(this.func_110371_a(var6.func_105627_a(var1.substring(6))), var3);
          this.field_110389_b = false;
        } else if (var1.startsWith("%blurclamp%")) {
          this.field_110389_b = true;
          this.field_110391_a = true;
          this.func_110379_a(this.func_110371_a(var6.func_105627_a(var1.substring(11))), var3);
          this.field_110389_b = false;
          this.field_110391_a = false;
        } else {
          InputStream var7 = var6.func_105627_a(var1);
          if (var7 == null) {
            this.func_110379_a(this.field_110392_l, var3);
          } else {
            this.func_110379_a(this.func_110371_a(var7), var3);
          }
        }

        this.field_110390_c.put(var1, Integer.valueOf(var3));
        return var3;
      } catch (Exception var5) {
        var5.printStackTrace();
        C_101209_aqk.func_112005_a(this.field_110385_f);
        int var4 = this.field_110385_f.get(0);
        this.func_110379_a(this.field_110392_l, var4);
        this.field_110390_c.put(var1, Integer.valueOf(var4));
        return var4;
      }
    }
  }
  public void func_110380_b() {
    C_100087_bco var1 = this.field_110394_k.func_105667_e();
    Iterator var2 = this.field_110388_e.func_109036_d().iterator();

    BufferedImage var4;
    while (var2.hasNext()) {
      int var3 = ((Integer) var2.next()).intValue();
      var4 = (BufferedImage) this.field_110388_e.func_109038_a(var3);
      this.func_110379_a(var4, var3);
    }

    C_100981_ayu var8;
    for (var2 = this.field_110396_i.values().iterator();
        var2.hasNext();
        var8.field_111219_d = false) {
      var8 = (C_100981_ayu) var2.next();
    }

    var2 = this.field_110390_c.keySet().iterator();

    String var9;
    while (var2.hasNext()) {
      var9 = (String) var2.next();

      try {
        if (var9.startsWith("##")) {
          var4 = this.func_110384_c(this.func_110371_a(var1.func_105627_a(var9.substring(2))));
        } else if (var9.startsWith("%clamp%")) {
          this.field_110391_a = true;
          var4 = this.func_110371_a(var1.func_105627_a(var9.substring(7)));
        } else if (var9.startsWith("%blur%")) {
          this.field_110389_b = true;
          var4 = this.func_110371_a(var1.func_105627_a(var9.substring(6)));
        } else if (var9.startsWith("%blurclamp%")) {
          this.field_110389_b = true;
          this.field_110391_a = true;
          var4 = this.func_110371_a(var1.func_105627_a(var9.substring(11)));
        } else {
          var4 = this.func_110371_a(var1.func_105627_a(var9));
        }

        int var5 = ((Integer) this.field_110390_c.get(var9)).intValue();
        this.func_110379_a(var4, var5);
        this.field_110389_b = false;
        this.field_110391_a = false;
      } catch (IOException var7) {
        var7.printStackTrace();
      }
    }

    var2 = this.field_110387_d.keySet().iterator();

    while (var2.hasNext()) {
      var9 = (String) var2.next();

      try {
        if (var9.startsWith("##")) {
          var4 = this.func_110384_c(this.func_110371_a(var1.func_105627_a(var9.substring(2))));
        } else if (var9.startsWith("%clamp%")) {
          this.field_110391_a = true;
          var4 = this.func_110371_a(var1.func_105627_a(var9.substring(7)));
        } else if (var9.startsWith("%blur%")) {
          this.field_110389_b = true;
          var4 = this.func_110371_a(var1.func_105627_a(var9.substring(6)));
        } else {
          var4 = this.func_110371_a(var1.func_105627_a(var9));
        }

        this.func_110366_a(var4, (int[]) this.field_110387_d.get(var9));
        this.field_110389_b = false;
        this.field_110391_a = false;
      } catch (IOException var6) {
        var6.printStackTrace();
      }
    }
  }