Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public NBTTagCompound writeToNBT(NBTTagCompound nbtTagCompound)
- {
- NBTTagList nbtTagList = new NBTTagList();
- for (Map.Entry<Integer, FlawInventory> entry : flaws.entrySet())
- {
- FlawInventory inventory = entry.getValue();
- NBTTagCompound nbtTagCompound1 = new NBTTagCompound();
- nbtTagCompound1.setInteger("Flaw", entry.getKey());
- inventory.writeToNBT(nbtTagCompound1);
- nbtTagList.appendTag(nbtTagCompound1);
- }
- nbtTagCompound.setTag("flaws", nbtTagList);
- nbtTagCompound.setInteger("LastFlawId", lastFlawId);
- return nbtTagCompound;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement