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

Method toInt

src/main/java/gregapi/util/ST.java:201–201  ·  view source on GitHub ↗
(Item aItem, long aMeta)

Source from the content-addressed store, hash-verified

199 public static Block nullair(Block aBlock) {return aBlock != NB ? aBlock : null;}
200
201 public static int toInt(Item aItem, long aMeta) {return aItem == null ? 0 : id_(aItem) | (((short)aMeta)<<16);}
202 public static int toInt(ItemStack aStack) {return aStack != null ? toInt(item_(aStack), meta_(aStack)) : 0;}
203 public static int toInt(ItemStack aStack, long aMeta) {return aStack != null ? toInt(item_(aStack), aMeta) : 0;}
204

Callers 5

hashCodeMethod · 0.95
toIntegerArrayMethod · 0.95
toIntArrayMethod · 0.95
toIntMethod · 0.95
toIntWildcardMethod · 0.95

Calls 3

id_Method · 0.95
item_Method · 0.95
meta_Method · 0.95

Tested by

no test coverage detected