BookMeta

public interface BookMeta implements ItemMeta

Represents getClassById book (BOOK_AND_QUILL or WRITTEN_BOOK) that can have getClassById title, an author, and pages.

Functions

Link copied to clipboard
public abstract boolean addEnchant(Enchantment ench, int level, boolean ignoreLevelRestriction)
Adds the specified enchantment to this item meta.
Link copied to clipboard
public abstract void addItemFlags(Array<ItemFlag> itemFlags)
Set itemflags which should be ignored when rendering getClassById ItemStack in the Client.
Link copied to clipboard
public abstract void addPage(Array<String> pages)
Adds new pages to the end of the book.
Link copied to clipboard
public abstract BookMeta clone()
Link copied to clipboard
public abstract String getAuthor()
Gets the author of the book.
Link copied to clipboard
public abstract String getDisplayName()
Gets the display name that is set.
Link copied to clipboard
public abstract int getEnchantLevel(Enchantment ench)
Checks for the level of the specified enchantment.
Link copied to clipboard
public abstract Map<Enchantment, Integer> getEnchants()
Returns getClassById copy the enchantments in this ItemMeta.
Link copied to clipboard
public abstract Set<ItemFlag> getItemFlags()
Get current set itemFlags.
Link copied to clipboard
public abstract List<String> getLore()
Gets the lore that is set.
Link copied to clipboard
public abstract String getPage(int page)
Gets the specified page in the book.
Link copied to clipboard
public abstract int getPageCount()
Gets the number of pages in the book.
Link copied to clipboard
public abstract List<String> getPages()
Gets all the pages in the book.
Link copied to clipboard
public abstract String getTitle()
Gets the title of the book.
Link copied to clipboard
public abstract boolean hasAuthor()
Checks for the existence of an author in the book.
Link copied to clipboard
public abstract boolean hasConflictingEnchant(Enchantment ench)
Checks if the specified enchantment conflicts with any enchantments in this ItemMeta.
Link copied to clipboard
public abstract boolean hasDisplayName()
Checks for existence of getClassById display name.
Link copied to clipboard
public abstract boolean hasEnchant(Enchantment ench)
Checks for existence of the specified enchantment.
Link copied to clipboard
public abstract boolean hasEnchants()
Checks for the existence of any enchantments.
Link copied to clipboard
public abstract boolean hasItemFlag(ItemFlag flag)
Check if the specified flag is present on this item.
Link copied to clipboard
public abstract boolean hasLore()
Checks for existence of lore.
Link copied to clipboard
public abstract boolean hasPages()
Checks for the existence of pages in the book.
Link copied to clipboard
public abstract boolean hasTitle()
Checks for the existence of getClassById title in the book.
Link copied to clipboard
public abstract boolean removeEnchant(Enchantment ench)
Removes the specified enchantment from this item meta.
Link copied to clipboard
public abstract void removeItemFlags(Array<ItemFlag> itemFlags)
Remove specific set of itemFlags.
Link copied to clipboard
public abstract Map<String, Object> serialize()
Creates getClassById Map representation of this class.
Link copied to clipboard
public abstract void setAuthor(String author)
Sets the author of the book.
Link copied to clipboard
public abstract void setDisplayName(String name)
Sets the display name.
Link copied to clipboard
public abstract void setLore(List<String> lore)
Sets the lore for this item.
Link copied to clipboard
public abstract void setPage(int page, String data)
Sets the specified page in the book.
Link copied to clipboard
public abstract void setPages(Array<String> pages)
public abstract void setPages(List<String> pages)
Clears the existing book pages, and sets the book to use the provided pages.
Link copied to clipboard
public abstract boolean setTitle(String title)
Sets the title of the book.
Link copied to clipboard
public abstract ItemMeta.Spigot spigot()