(byte[] data)
| 36 | } |
| 37 | |
| 38 | public static NBTTagCompound load(byte[] data) { |
| 39 | try { |
| 40 | NBTTagCompound nbt = CompressedStreamTools.readCompressed(new ByteArrayInputStream(data)); |
| 41 | return nbt; |
| 42 | } catch (IOException e) { |
| 43 | e.printStackTrace(); |
| 44 | } |
| 45 | |
| 46 | return null; |
| 47 | } |
| 48 | |
| 49 | public static NBTTagCompound getItemData(ItemStack stack) { |
| 50 | if (stack == null) { |
no outgoing calls
no test coverage detected