MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / addLoot

Method addLoot

src/main/java/gregtech/loaders/c/Loader_Loot.java:555–562  ·  view source on GitHub ↗
(String aType, WeightedRandomChestContent aLoot)

Source from the content-addressed store, hash-verified

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) {

Callers 1

runMethod · 0.95

Calls 7

invalidMethod · 0.95
copyMethod · 0.95
stringInvalidMethod · 0.80
printlnMethod · 0.80
getMethod · 0.65
getMaxStackSizeMethod · 0.65
addItemMethod · 0.45

Tested by

no test coverage detected