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

Method validMeta_

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

Source from the content-addressed store, hash-verified

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));}
196 public static ItemStack validMeta (ItemStack aStack) {return aStack == null || item_(aStack) == null ? null : validMeta_(aStack);}
197 public static ItemStack validMeta_(ItemStack aStack) {return meta_(aStack) == W ? meta_(copy_(aStack), 0) : copy_(aStack);}
198

Callers 4

RecipeMethod · 0.95
validMetaMethod · 0.95
runMethod · 0.95
runMethod · 0.95

Calls 3

size_Method · 0.95
meta_Method · 0.95
copy_Method · 0.95

Tested by

no test coverage detected