Пример #1
0
  private static StatBase[] func_25089_a(String s, int i) {
    StatBase astatbase[] = new StatBase[256];
    for (int j = 0; j < 256; j++) {
      if (Block.blocksList[j] != null && Block.blocksList[j].getEnableStats()) {
        String s1 =
            StatCollector.translateToLocalFormatted(
                s, new Object[] {Block.blocksList[j].getNameLocalizedForStats()});
        astatbase[j] = (new StatCrafting(i + j, s1, j)).func_27053_d();
        field_25120_d.add((StatCrafting) astatbase[j]);
      }
    }

    replaceAllSimilarBlocks(astatbase);
    return astatbase;
  }
Пример #2
0
  private static StatBase[] func_25087_b(StatBase astatbase[], String s, int i, int j, int k) {
    if (astatbase == null) {
      astatbase = new StatBase[32000];
    }
    for (int l = j; l < k; l++) {
      if (Item.itemsList[l] != null && Item.itemsList[l].func_25005_e()) {
        String s1 =
            StatCollector.translateToLocalFormatted(
                s, new Object[] {Item.itemsList[l].func_25006_i()});
        astatbase[l] = (new StatCrafting(i + l, s1, l)).func_27053_d();
      }
    }

    replaceAllSimilarBlocks(astatbase);
    return astatbase;
  }
Пример #3
0
  private static StatBase[] func_25090_a(StatBase astatbase[], String s, int i, int j, int k) {
    if (astatbase == null) {
      astatbase = new StatBase[32000];
    }
    for (int l = j; l < k; l++) {
      if (Item.itemsList[l] == null) {
        continue;
      }
      String s1 =
          StatCollector.translateToLocalFormatted(
              s, new Object[] {Item.itemsList[l].func_25006_i()});
      astatbase[l] = (new StatCrafting(i + l, s1, l)).func_27053_d();
      if (l >= Block.blocksList.length) {
        field_25121_c.add((StatCrafting) astatbase[l]);
      }
    }

    replaceAllSimilarBlocks(astatbase);
    return astatbase;
  }
Пример #4
0
  public static void func_25091_c() {
    if (!field_25101_D || !field_25099_E) {
      return;
    }
    HashSet hashset = new HashSet();
    IRecipe irecipe;
    for (Iterator iterator = CraftingManager.getInstance().getRecipeList().iterator();
        iterator.hasNext();
        hashset.add(Integer.valueOf(irecipe.func_25077_b().itemID))) {
      irecipe = (IRecipe) iterator.next();
    }

    ItemStack itemstack;
    for (Iterator iterator1 = FurnaceRecipes.smelting().getSmeltingList().values().iterator();
        iterator1.hasNext();
        hashset.add(Integer.valueOf(itemstack.itemID))) {
      itemstack = (ItemStack) iterator1.next();
    }

    field_25093_z = new StatBase[32000];
    Iterator iterator2 = hashset.iterator();
    do {
      if (!iterator2.hasNext()) {
        break;
      }
      Integer integer = (Integer) iterator2.next();
      if (Item.itemsList[integer.intValue()] != null) {
        String s =
            StatCollector.translateToLocalFormatted(
                "stat.craftItem", new Object[] {Item.itemsList[integer.intValue()].func_25006_i()});
        field_25093_z[integer.intValue()] =
            (new StatCrafting(0x1010000 + integer.intValue(), s, integer.intValue()))
                .func_27053_d();
      }
    } while (true);
    replaceAllSimilarBlocks(field_25093_z);
  }