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

Method setMagicMapID

src/main/java/gregapi/util/UT.java:2123–2128  ·  view source on GitHub ↗
(ItemStack aStack, short aMapID)

Source from the content-addressed store, hash-verified

2121 }
2122
2123 public static NBTTagCompound setMagicMapID(ItemStack aStack, short aMapID) {
2124 NBTTagCompound tNBT = getNBT(aStack);
2125 tNBT.setShort("magic_map_id", aMapID);
2126 set(aStack, tNBT);
2127 return tNBT;
2128 }
2129 public static short getMagicMapID(ItemStack aStack) {
2130 NBTTagCompound tNBT = getNBT(aStack);
2131 if (!tNBT.hasKey("magic_map_id")) return -1;

Callers 1

findRecipeMethod · 0.80

Calls 2

getNBTMethod · 0.95
setMethod · 0.95

Tested by

no test coverage detected