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

Method getMagicMapID

src/main/java/gregapi/util/UT.java:2129–2133  ·  view source on GitHub ↗
(ItemStack aStack)

Source from the content-addressed store, hash-verified

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;
2132 return tNBT.getShort("magic_map_id");
2133 }
2134 public static NBTTagCompound setMagicMapID(NBTTagCompound aNBT, short aMapID) {
2135 aNBT.setShort("magic_map_id", aMapID);
2136 return aNBT;

Callers 2

getDataToolTipMethod · 0.95
findRecipeMethod · 0.80

Calls 1

getNBTMethod · 0.95

Tested by

no test coverage detected