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

Method div_

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

Source from the content-addressed store, hash-verified

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);}
193
194 public static ItemStack validMeta (long aSize, ItemStack aStack) {return aStack == null || item_(aStack) == null ? null : validMeta_(aSize, aStack);}
195 public static ItemStack validMeta_(long aSize, ItemStack aStack) {return size_(aSize, validMeta_(aStack));}

Callers 1

divMethod · 0.95

Calls 1

amount_Method · 0.95

Tested by

no test coverage detected