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