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

Method valisize

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

Source from the content-addressed store, hash-verified

135
136 public static ItemStack validate(ItemStack aStack) {return valid(aStack) ? aStack : null;}
137 public static ItemStack valisize(ItemStack aStack) {return valid(aStack) && aStack.stackSize > 0 ? aStack : null;}
138
139 public static short id (Item aItem ) {return aItem == null ? 0 : id_(aItem);}
140 public static short id_(Item aItem ) {return (short)Item.getIdFromItem(aItem);}

Callers 3

getMethod · 0.95
outputsMethod · 0.95
updateTaskMethod · 0.95

Calls 1

validMethod · 0.95

Tested by

no test coverage detected