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

Method validMeta

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

Source from the content-addressed store, hash-verified

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));}
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);}

Callers 8

pulverizingMethod · 0.95
ic2_maceratorMethod · 0.95
ic2_extractorMethod · 0.95
ic2_compressorMethod · 0.95
shapedMethod · 0.95
shapelessMethod · 0.95
runMethod · 0.95
runMethod · 0.95

Calls 2

item_Method · 0.95
validMeta_Method · 0.95

Tested by

no test coverage detected