private static StatBase[] initUsableStats(StatBase[] var0, String var1, int var2, int var3, int var4) {
        if (var0 == null) {
            var0 = new StatBase[32000];
        }

        for (int var5 = var3; var5 < var4; ++var5) {
            if (Item.itemsList[var5] != null) {
                String var6 = StatCollector.translateToLocalFormatted(var1, new Object[]{Item.itemsList[var5].getStatName()});
                var0[var5] = (new StatCrafting(var2 + var5, var6, var5)).registerStat();
                if (var5 >= Block.blocksList.length) {
                    field_25186_c.add((StatCrafting) var0[var5]);
                }
            }
        }

        replaceAllSimilarBlocks(var0);
        return var0;
    }