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,org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.inventory.meta.BookMeta,org.bukkit.inventory.meta.Damageable,org.bukkit.inventory.meta.ItemMeta,org.bukkit.inventory.meta.Repairable,org.bukkit.persistence.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
org.bukkit.inventory.meta.BookMeta.BookMetaBuilder, org.bukkit.inventory.meta.BookMeta.Generation, org.bukkit.inventory.meta.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 org.bukkit.inventory.meta.BookMetaauthor(@Nullable net.kyori.adventure.text.Component author) clone()booleanorg.bukkit.inventory.meta.BookMeta.GenerationgetPage(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(org.bukkit.inventory.meta.BookMeta.Generation generation) voidDeprecated.voidDeprecated.voidDeprecated.booleanorg.bukkit.inventory.meta.BookMeta.Spigotspigot()@Nullable net.kyori.adventure.text.Componenttitle()@NotNull org.bukkit.inventory.meta.BookMetatitle(@Nullable net.kyori.adventure.text.Component title) @NonNull org.bukkit.inventory.meta.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
public BookMetaMock(org.bukkit.inventory.meta.BookMeta meta)
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classItemMetaMock
-
equals
- Overrides:
equalsin classItemMetaMock
-
hasTitle
public boolean hasTitle()- Specified by:
hasTitlein interfaceorg.bukkit.inventory.meta.BookMeta
-
hasPages
public boolean hasPages()- Specified by:
hasPagesin interfaceorg.bukkit.inventory.meta.BookMeta
-
title
@Nullable public @Nullable net.kyori.adventure.text.Component title()- Specified by:
titlein interfacenet.kyori.adventure.inventory.Book- Specified by:
titlein interfaceorg.bukkit.inventory.meta.BookMeta
-
title
@NotNull public @NotNull org.bukkit.inventory.meta.BookMeta title(@Nullable @Nullable net.kyori.adventure.text.Component title) - Specified by:
titlein interfacenet.kyori.adventure.inventory.Book- Specified by:
titlein interfaceorg.bukkit.inventory.meta.BookMeta
-
author
@Nullable public @Nullable net.kyori.adventure.text.Component author()- Specified by:
authorin interfacenet.kyori.adventure.inventory.Book- Specified by:
authorin interfaceorg.bukkit.inventory.meta.BookMeta
-
author
@NotNull public @NotNull org.bukkit.inventory.meta.BookMeta author(@Nullable @Nullable net.kyori.adventure.text.Component author) - Specified by:
authorin interfacenet.kyori.adventure.inventory.Book- Specified by:
authorin interfaceorg.bukkit.inventory.meta.BookMeta
-
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) - Specified by:
pagein interfaceorg.bukkit.inventory.meta.BookMeta
-
page
public void page(int page, @NotNull @NotNull net.kyori.adventure.text.Component data) - Specified by:
pagein interfaceorg.bukkit.inventory.meta.BookMeta
-
addPages
public void addPages(@NotNull @NotNull net.kyori.adventure.text.Component... pages) - Specified by:
addPagesin interfaceorg.bukkit.inventory.meta.BookMeta
-
toBuilder
public @NonNull org.bukkit.inventory.meta.BookMeta.BookMetaBuilder toBuilder()- Specified by:
toBuilderin interfacenet.kyori.adventure.inventory.Book- Specified by:
toBuilderin interfaceorg.bukkit.inventory.meta.BookMeta- Specified by:
toBuilderin interfacenet.kyori.adventure.util.Buildable<net.kyori.adventure.inventory.Book,net.kyori.adventure.inventory.Book.Builder>
-
getTitle
- Specified by:
getTitlein interfaceorg.bukkit.inventory.meta.BookMeta
-
setTitle
- Specified by:
setTitlein interfaceorg.bukkit.inventory.meta.BookMeta
-
hasAuthor
public boolean hasAuthor()- Specified by:
hasAuthorin interfaceorg.bukkit.inventory.meta.BookMeta
-
getAuthor
- Specified by:
getAuthorin interfaceorg.bukkit.inventory.meta.BookMeta
-
setAuthor
- Specified by:
setAuthorin interfaceorg.bukkit.inventory.meta.BookMeta
-
getPage
Deprecated.- Specified by:
getPagein interfaceorg.bukkit.inventory.meta.BookMeta
-
setPage
Deprecated.- Specified by:
setPagein interfaceorg.bukkit.inventory.meta.BookMeta
-
getPages
Deprecated.- Specified by:
getPagesin interfaceorg.bukkit.inventory.meta.BookMeta
-
setPages
Deprecated.- Specified by:
setPagesin interfaceorg.bukkit.inventory.meta.BookMeta
-
setPages
Deprecated.- Specified by:
setPagesin interfaceorg.bukkit.inventory.meta.BookMeta
-
addPage
Deprecated.- Specified by:
addPagein interfaceorg.bukkit.inventory.meta.BookMeta
-
getPageCount
public int getPageCount()- Specified by:
getPageCountin interfaceorg.bukkit.inventory.meta.BookMeta
-
clone
- Specified by:
clonein interfaceorg.bukkit.inventory.meta.BookMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.Damageable- Specified by:
clonein interfaceorg.bukkit.inventory.meta.ItemMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.Repairable- Overrides:
clonein classItemMetaMock
-
hasGeneration
public boolean hasGeneration()- Specified by:
hasGenerationin interfaceorg.bukkit.inventory.meta.BookMeta
-
getGeneration
public org.bukkit.inventory.meta.BookMeta.Generation getGeneration()- Specified by:
getGenerationin interfaceorg.bukkit.inventory.meta.BookMeta
-
setGeneration
public void setGeneration(org.bukkit.inventory.meta.BookMeta.Generation generation) - Specified by:
setGenerationin interfaceorg.bukkit.inventory.meta.BookMeta
-
spigot
public org.bukkit.inventory.meta.BookMeta.Spigot spigot()- Specified by:
spigotin interfaceorg.bukkit.inventory.meta.BookMeta
-