Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. @Override
  2. public NBTTagCompound writeToNBT(NBTTagCompound nbtTagCompound)
  3. {
  4. NBTTagList nbtTagList = new NBTTagList();
  5.  
  6. for (Map.Entry<Integer, FlawInventory> entry : flaws.entrySet())
  7. {
  8. FlawInventory inventory = entry.getValue();
  9.  
  10. NBTTagCompound nbtTagCompound1 = new NBTTagCompound();
  11. nbtTagCompound1.setInteger("Flaw", entry.getKey());
  12. inventory.writeToNBT(nbtTagCompound1);
  13. nbtTagList.appendTag(nbtTagCompound1);
  14. }
  15.  
  16. nbtTagCompound.setTag("flaws", nbtTagList);
  17. nbtTagCompound.setInteger("LastFlawId", lastFlawId);
  18.  
  19. return nbtTagCompound;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement