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

Method amount_

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

Source from the content-addressed store, hash-verified

184
185 public static ItemStack amount (long aSize, ItemStack aStack) {return aStack == null || item_(aStack) == null ? null : amount_(aSize, aStack);}
186 public static ItemStack amount_(long aSize, ItemStack aStack) {return size_(aSize, copy_(aStack));}
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);}

Callers 4

amountMethod · 0.95
mul_Method · 0.95
div_Method · 0.95
copyAmountAndMetaMethod · 0.95

Calls 2

size_Method · 0.95
copy_Method · 0.95

Tested by

no test coverage detected