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

Method id_

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

Source from the content-addressed store, hash-verified

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);}
143 public static short id (ItemStack aStack) {return aStack == null ? 0 : id(item_(aStack));}

Callers 2

idMethod · 0.95
toIntMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected