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

Method size

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

Source from the content-addressed store, hash-verified

166 public static ItemStack meta_(ItemStack aStack, long aMeta) {Items.feather.setDamage(aStack, (short)aMeta); return aStack;}
167
168 public static byte size (ItemStack aStack) {return aStack == null || item_(aStack) == null || aStack.stackSize < 0 ? 0 : UT.Code.bindByte(aStack.stackSize);}
169 public static ItemStack size (long aSize, ItemStack aStack) {return aStack == null || item_(aStack) == null ? null : size_(aSize, aStack);}
170 public static ItemStack size_(long aSize, ItemStack aStack) {aStack.stackSize = (int)aSize; return aStack;}
171

Callers 15

getFirstOreMethod · 0.95
setEnergyStoredMethod · 0.95
onItemUseMethod · 0.95
setEnergyStoredMethod · 0.95
setEnergyStoredMethod · 0.95
readFromNBT2Method · 0.95
onBlockActivated2Method · 0.95
SaplingEntryMethod · 0.95
putStackMethod · 0.95
putStackMethod · 0.95
moveAllMethod · 0.95
onServerTickMethod · 0.45

Calls 3

item_Method · 0.95
size_Method · 0.95
bindByteMethod · 0.80

Tested by

no test coverage detected