Method
addToItemList
(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 | { |
Tested by
no test coverage detected