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

Method validate

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

Source from the content-addressed store, hash-verified

134 public static boolean invalid(ItemStack aStack) {return aStack == null || aStack.stackSize < 0 || item_(aStack) == null;}
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);}

Callers 2

makeMethod · 0.95
mkicMethod · 0.95

Calls 1

validMethod · 0.95

Tested by

no test coverage detected