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

Method setMapID

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

Source from the content-addressed store, hash-verified

2101 }
2102
2103 public static NBTTagCompound setMapID(ItemStack aStack, short aMapID) {
2104 NBTTagCompound tNBT = getNBT(aStack);
2105 tNBT.setShort("map_id", aMapID);
2106 set(aStack, tNBT);
2107 return tNBT;
2108 }
2109 public static short getMapID(ItemStack aStack) {
2110 NBTTagCompound tNBT = getNBT(aStack);
2111 if (!tNBT.hasKey("map_id")) return -1;

Callers 1

findRecipeMethod · 0.80

Calls 2

getNBTMethod · 0.95
setMethod · 0.95

Tested by

no test coverage detected