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

Method addToItemList

src/main/java/net/optifine/CustomItems.java:512–530  ·  view source on GitHub ↗
(CustomItemProperties cp, List itemList)

Source from the content-addressed store, hash-verified

510 }
511
512 private static void addToItemList(CustomItemProperties cp, List itemList)
513 {
514 if (cp.items != null)
515 {
516 for (int i = 0; i < cp.items.length; ++i)
517 {
518 int j = cp.items[i];
519
520 if (j <= 0)
521 {
522 Config.warn("Invalid item ID: " + j);
523 }
524 else
525 {
526 addToList(cp, itemList, j);
527 }
528 }
529 }
530 }
531
532 private static void addToEnchantmentList(CustomItemProperties cp, List enchantmentList)
533 {

Callers 1

updateMethod · 0.95

Calls 2

warnMethod · 0.95
addToListMethod · 0.95

Tested by

no test coverage detected