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

Method item

src/main/java/gregapi/util/ST.java:145–145  ·  view source on GitHub ↗
(ModData aModID, String aItem)

Source from the content-addressed store, hash-verified

143 public static short id (ItemStack aStack) {return aStack == null ? 0 : id(item_(aStack));}
144
145 public static Item item (ModData aModID, String aItem) {return item(make(aModID, aItem, 1, 0));}
146 public static Item item (ModData aModID, String aItem, Item aReplacement) {Item rItem = item(aModID, aItem); return rItem == null ? aReplacement : rItem;}
147 public static Item item (Block aBlock) {return aBlock == null ? null : item_(aBlock);}
148 public static Item item_(Block aBlock) {return aBlock == NB ? null : Item.getItemFromBlock(aBlock);}

Callers 15

onPlayerInteractionMethod · 0.95
onItemTooltipMethod · 0.95
onClientTickEventMethod · 0.95
onModPreInit2Method · 0.95
scanMethod · 0.95
onCraftMatrixChangedMethod · 0.95
potMethod · 0.95
equalMethod · 0.95
findRecipeMethod · 0.95
findRecipeMethod · 0.95
onToolClickMethod · 0.95
DropsMethod · 0.95

Calls 2

makeMethod · 0.95
item_Method · 0.95

Tested by

no test coverage detected