Package org.bukkit.inventory.meta
Interface BookMeta
- All Superinterfaces:
- Cloneable,- ConfigurationSerializable,- ItemMeta,- PersistentDataHolder,- WritableBookMeta
Represents a 
Material.WRITTEN_BOOK) that can have a title, an author,
 and pages.- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents the generation (or level of copying) of a written bookstatic class
- 
Method SummaryModifier and TypeMethodDescriptionclone()Gets the author of the book.Gets the generation of the book.getTitle()Gets the title of the book.booleanChecks for the existence of an author in the book.booleanChecks for the existence of generation level in the book.booleanhasTitle()Checks for the existence of a title in the book.voidSets the author of the book.voidsetGeneration(BookMeta.Generation generation) Sets the generation of the book.booleanSets the title of the book.spigot()Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserializeMethods inherited from interface org.bukkit.inventory.meta.ItemMetaaddAttributeModifier, addEnchant, addItemFlags, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getConsumable, getCustomModelData, getCustomModelDataComponent, getCustomTagContainer, getDamageResistant, getDisplayName, getEnchantable, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getEquippable, getFood, getItemFlags, getItemModel, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getMaxStackSize, getRarity, getTool, getTooltipStyle, getUseCooldown, getUseRemainder, hasAttributeModifiers, hasConflictingEnchant, hasConsumable, hasCustomModelData, hasDamageResistant, hasDisplayName, hasEnchant, hasEnchantable, hasEnchantmentGlintOverride, hasEnchants, hasEquippable, hasFood, hasItemFlag, hasItemModel, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, hasTooltipStyle, hasUseCooldown, hasUseRemainder, isFireResistant, isGlider, isHideTooltip, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setConsumable, setCustomModelData, setCustomModelDataComponent, setDamageResistant, setDisplayName, setEnchantable, setEnchantmentGlintOverride, setEquippable, setFireResistant, setFood, setGlider, setHideTooltip, setItemModel, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setMaxStackSize, setRarity, setTool, setTooltipStyle, setUnbreakable, setUseCooldown, setUseRemainder, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.inventory.meta.WritableBookMetaaddPage, getPage, getPageCount, getPages, hasPages, setPage, setPages, setPages
- 
Method Details- 
hasTitleboolean hasTitle()Checks for the existence of a title in the book.- Returns:
- true if the book has a title
 
- 
getTitleGets the title of the book.Plugins should check that hasTitle() returns true before calling this method. - Returns:
- the title of the book
 
- 
setTitleSets the title of the book.Limited to 32 characters. Removes title when given null. - Parameters:
- title- the title to set
- Returns:
- true if the title was successfully set
 
- 
hasAuthorboolean hasAuthor()Checks for the existence of an author in the book.- Returns:
- true if the book has an author
 
- 
getAuthorGets the author of the book.Plugins should check that hasAuthor() returns true before calling this method. - Returns:
- the author of the book
 
- 
setAuthorSets the author of the book. Removes author when given null.- Parameters:
- author- the author to set
 
- 
hasGenerationboolean hasGeneration()Checks for the existence of generation level in the book.- Returns:
- true if the book has a generation level
 
- 
getGenerationGets the generation of the book.Plugins should check that hasGeneration() returns true before calling this method. - Returns:
- the generation of the book
 
- 
setGenerationSets the generation of the book. Removes generation when given null.- Parameters:
- generation- the generation to set
 
- 
clone- Specified by:
- clonein interface- ItemMeta
- Specified by:
- clonein interface- WritableBookMeta
 
- 
spigot
 
-