MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / initMiningStats

Method initMiningStats

src/main/java/net/minecraft/stats/StatList.java:173–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 1

initMethod · 0.95

Calls 8

getItemFromBlockMethod · 0.95
getIdFromBlockMethod · 0.95
func_180204_aMethod · 0.95
getEnableStatsMethod · 0.80
registerStatMethod · 0.45
getChatComponentMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected