String author = storage.getString (tagStringAuthor);
String title = storage.getString (tagStringTitle);
Integer pSize = storage.getInteger(tagIntegerPagesSize);
NBTTagCompound compound = new NBTTagCompound();
if (pSize != null) {
NBTTagList list = new NBTTagList();
for (int i = 0; i < pSize; i++) {
String page = storage.getString(tagStringPagePref+i);
if (page != null) {
NBTTagString tag = new NBTTagString(page);
tag.data = page;
list.add(tag);
}
}
compound.set(tagStringPages, list);
}
if (title != null)
compound.setString(tagStringTitle, title);
if (author != null)
compound.setString(tagStringAuthor, author);
return compound;
}