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

Method id

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

Source from the content-addressed store, hash-verified

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);}
140 public static short id_(Item aItem ) {return (short)Item.getIdFromItem(aItem);}
141 public static short id (Block aBlock) {return aBlock == null ? 0 : id_(aBlock);}
142 public static short id_(Block aBlock) {return aBlock == NB ? 0 : (short)Block.getIdFromBlock(aBlock);}

Callers 11

scanMethod · 0.95
encodeMethod · 0.95
getClientDataPacketMethod · 0.95
currentIDMethod · 0.95
saveMethod · 0.95
idMethod · 0.95
setMethod · 0.95
getMethod · 0.95
getClientDataPacketMethod · 0.95
getClientDataPacketMethod · 0.95
getClientDataPacketMethod · 0.95

Calls 2

id_Method · 0.95
item_Method · 0.95

Tested by

no test coverage detected