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