(ItemStack aStack)
| 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; |
no test coverage detected