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

Method toStack

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

Source from the content-addressed store, hash-verified

203 public static int toInt(ItemStack aStack, long aMeta) {return aStack != null ? toInt(item_(aStack), aMeta) : 0;}
204
205 public static ItemStack toStack(int aStack) {return make(toItem(aStack), 1, toMeta(aStack));}
206 public static Block toBlock(int aStack) {return block(aStack&(~0>>>16));}
207 public static Item toItem (int aStack) {return item(aStack&(~0>>>16));}
208 public static short toMeta (int aStack) {return (short)(aStack>>>16);}

Callers 15

toStackMethod · 0.95
onItemUseMethod · 0.45
getNEIAllRecipesMethod · 0.45
getNEIRecipesMethod · 0.45
runMethod · 0.45
onOreRegistrationMethod · 0.45
getMethod · 0.45
makeMethod · 0.45
placeMethod · 0.45
dropMethod · 0.45
entityMethod · 0.45
onModServerStarting2Method · 0.45

Calls 3

makeMethod · 0.95
toItemMethod · 0.95
toMetaMethod · 0.95

Tested by

no test coverage detected