public static boolean func_56822_a(NBTTagCompound par0NBTTagCompound) { if (!ItemWritableBook.func_56831_a(par0NBTTagCompound)) { return false; } if (!par0NBTTagCompound.hasKey("title")) { return false; } String s = par0NBTTagCompound.getString("title"); if (s == null || s.length() > 16) { return false; } return par0NBTTagCompound.hasKey("author"); }