(String aType, WeightedRandomChestContent aLoot)
| 553 | } |
| 554 | |
| 555 | public static boolean addLoot(String aType, WeightedRandomChestContent aLoot) { |
| 556 | if (ST.invalid(aLoot.theItemId) || UT.Code.stringInvalid(aType)) { |
| 557 | ERR.println("Failed to add Loot: " + aLoot.theItemId + " to " + aType); |
| 558 | return F; |
| 559 | } |
| 560 | ChestGenHooks.addItem(aType, aLoot); |
| 561 | return T; |
| 562 | } |
| 563 | |
| 564 | public static boolean addLoot(String aType, int aChance, int aMin, int aMax, ItemStack aLoot) {return addLoot(aType, aChance, aMin, aMax, aLoot, T);} |
| 565 | public static boolean addLoot(String aType, int aChance, int aMin, int aMax, ItemStack aLoot, boolean aLogMissing) { |
no test coverage detected