MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / mul_

Method mul_

src/main/java/gregapi/util/ST.java:189–189  ·  view source on GitHub ↗
(long aMultiplier, ItemStack aStack)

Source from the content-addressed store, hash-verified

187
188 public static ItemStack mul (long aMultiplier, ItemStack aStack) {return aStack == null || item_(aStack) == null ? null : mul_(aMultiplier, aStack);}
189 public static ItemStack mul_(long aMultiplier, ItemStack aStack) {return amount_(aStack.stackSize * aMultiplier, aStack);}
190
191 public static ItemStack div (long aDivider, ItemStack aStack) {return aStack == null || item_(aStack) == null ? null : div_(aDivider, aStack);}
192 public static ItemStack div_(long aDivider, ItemStack aStack) {return amount_(aStack.stackSize / aDivider, aStack);}

Callers 5

getOutputsMethod · 0.95
mulMethod · 0.95
onPostLoadMethod · 0.95
runMethod · 0.95
runMethod · 0.95

Calls 1

amount_Method · 0.95

Tested by

no test coverage detected