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

Method getMapID

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

Source from the content-addressed store, hash-verified

2107 return tNBT;
2108 }
2109 public static short getMapID(ItemStack aStack) {
2110 NBTTagCompound tNBT = getNBT(aStack);
2111 if (!tNBT.hasKey("map_id")) return -1;
2112 return tNBT.getShort("map_id");
2113 }
2114 public static NBTTagCompound setMapID(NBTTagCompound aNBT, short aMapID) {
2115 aNBT.setShort("map_id", aMapID);
2116 return aNBT;

Callers 2

getDataToolTipMethod · 0.95
findRecipeMethod · 0.80

Calls 1

getNBTMethod · 0.95

Tested by

no test coverage detected