()
| 171 | } |
| 172 | |
| 173 | private static void initMiningStats() |
| 174 | { |
| 175 | for (Block block : Block.blockRegistry) |
| 176 | { |
| 177 | Item item = Item.getItemFromBlock(block); |
| 178 | |
| 179 | if (item != null) |
| 180 | { |
| 181 | int i = Block.getIdFromBlock(block); |
| 182 | String s = func_180204_a(item); |
| 183 | |
| 184 | if (s != null && block.getEnableStats()) |
| 185 | { |
| 186 | mineBlockStatArray[i] = (new StatCrafting("stat.mineBlock.", s, new ChatComponentTranslation("stat.mineBlock", new Object[] {(new ItemStack(block)).getChatComponent()}), item)).registerStat(); |
| 187 | objectMineStats.add((StatCrafting)mineBlockStatArray[i]); |
| 188 | } |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | replaceAllSimilarBlocks(mineBlockStatArray); |
| 193 | } |
| 194 | |
| 195 | private static void initStats() |
| 196 | { |
no test coverage detected