Class BookMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.BookMetaMock
- All Implemented Interfaces:
Cloneable,net.kyori.adventure.inventory.Book,net.kyori.adventure.util.Buildable<net.kyori.adventure.inventory.Book,,net.kyori.adventure.inventory.Book.Builder> net.kyori.examination.Examinable,ConfigurationSerializable,BookMeta,Damageable,ItemMeta,Repairable,PersistentDataHolder
Created by SimplyBallistic on 26/10/2018
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.inventory.Book
net.kyori.adventure.inventory.Book.BuilderNested classes/interfaces inherited from interface org.bukkit.inventory.meta.BookMeta
BookMeta.BookMetaBuilder, BookMeta.Generation, BookMeta.Spigot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidaddPages(@NotNull net.kyori.adventure.text.Component... pages) @Nullable net.kyori.adventure.text.Componentauthor()@NotNull BookMetaauthor(@Nullable net.kyori.adventure.text.Component author) @NotNull BookMetaMockclone()boolean@NotNull StringgetPage(int page) Deprecated.intgetPages()Deprecated.getTitle()booleanbooleaninthashCode()booleanhasPages()booleanhasTitle()@NotNull net.kyori.adventure.text.Componentpage(int page) voidpage(int page, @NotNull net.kyori.adventure.text.Component data) @Unmodifiable @NotNull List<net.kyori.adventure.text.Component>pages()@NotNull net.kyori.adventure.inventory.BookvoidvoidsetGeneration(BookMeta.Generation generation) voidDeprecated.voidDeprecated.voidDeprecated.boolean@NotNull BookMeta.Spigotspigot()@Nullable net.kyori.adventure.text.Componenttitle()@NotNull BookMetatitle(@Nullable net.kyori.adventure.text.Component title) @NonNull BookMeta.BookMetaBuilderMethods inherited from class be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
addAttributeModifier, addEnchant, addItemFlags, assertComponentLore, assertHasNoLore, assertLore, assertLore, deserialize, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDamage, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, getRepairCost, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, hasRepairCost, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serialize, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDamage, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setRepairCost, setUnbreakable, setVersionMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.kyori.adventure.inventory.Book
pagesMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serializeMethods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examineMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
BookMetaMock
public BookMetaMock() -
BookMetaMock
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classItemMetaMock
-
equals
- Overrides:
equalsin classItemMetaMock
-
hasTitle
public boolean hasTitle() -
hasPages
public boolean hasPages() -
title
@Nullable public @Nullable net.kyori.adventure.text.Component title() -
title
@NotNull public @NotNull BookMeta title(@Nullable @Nullable net.kyori.adventure.text.Component title) -
author
@Nullable public @Nullable net.kyori.adventure.text.Component author() -
author
@NotNull public @NotNull BookMeta author(@Nullable @Nullable net.kyori.adventure.text.Component author) -
pages
- Specified by:
pagesin interfacenet.kyori.adventure.inventory.Book
-
pages
@NotNull public @NotNull net.kyori.adventure.inventory.Book pages(@NotNull @NotNull List<net.kyori.adventure.text.Component> pages) - Specified by:
pagesin interfacenet.kyori.adventure.inventory.Book
-
page
@NotNull public @NotNull net.kyori.adventure.text.Component page(int page) -
page
public void page(int page, @NotNull @NotNull net.kyori.adventure.text.Component data) -
addPages
public void addPages(@NotNull @NotNull net.kyori.adventure.text.Component... pages) -
toBuilder
-
getTitle
-
setTitle
-
hasAuthor
public boolean hasAuthor() -
getAuthor
-
setAuthor
-
getPage
Deprecated. -
setPage
Deprecated. -
getPages
Deprecated. -
setPages
Deprecated. -
setPages
Deprecated. -
addPage
Deprecated. -
getPageCount
public int getPageCount()- Specified by:
getPageCountin interfaceBookMeta
-
clone
- Specified by:
clonein interfaceBookMeta- Specified by:
clonein interfaceDamageable- Specified by:
clonein interfaceItemMeta- Specified by:
clonein interfaceRepairable- Overrides:
clonein classItemMetaMock
-
hasGeneration
public boolean hasGeneration()- Specified by:
hasGenerationin interfaceBookMeta
-
getGeneration
- Specified by:
getGenerationin interfaceBookMeta
-
setGeneration
- Specified by:
setGenerationin interfaceBookMeta
-
spigot
-