use of com.teamwizardry.wizardry.api.spell.SpellRing in project Wizardry by TeamWizardry.
the class TileMagiciansWorktable method writeCustomNBT.
@Override
public void writeCustomNBT(@Nonnull NBTTagCompound compound, boolean sync) {
super.writeCustomNBT(compound, sync);
NBTTagList list = new NBTTagList();
for (Map.Entry<SpellRing, UUID> entrySet : paperComponents.entrySet()) {
NBTTagCompound compound1 = new NBTTagCompound();
compound1.setTag("ring", entrySet.getKey().serializeNBT());
compound1.setString("uuid", entrySet.getValue().toString());
list.appendTag(compound1);
}
compound.setTag("components", list);
list = new NBTTagList();
for (Map.Entry<UUID, UUID> entrySet : componentLinks.entrySet()) {
NBTTagCompound compound1 = new NBTTagCompound();
compound1.setString("uuid1", entrySet.getKey().toString());
compound1.setString("uuid2", entrySet.getValue().toString());
list.appendTag(compound1);
}
compound.setTag("links", list);
}
Aggregations