Class BookMetaMock

java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.BookMetaMock
All Implemented Interfaces:
Cloneable, 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

public class BookMetaMock extends ItemMetaMock implements org.bukkit.inventory.meta.BookMeta
Created by SimplyBallistic on 26/10/2018
  • Constructor Details

    • BookMetaMock

      public BookMetaMock()
    • BookMetaMock

      public BookMetaMock(org.bukkit.inventory.meta.BookMeta meta)
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ItemMetaMock
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class ItemMetaMock
    • hasTitle

      public boolean hasTitle()
      Specified by:
      hasTitle in interface org.bukkit.inventory.meta.BookMeta
    • hasPages

      public boolean hasPages()
      Specified by:
      hasPages in interface org.bukkit.inventory.meta.BookMeta
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface org.bukkit.inventory.meta.BookMeta
    • setTitle

      public boolean setTitle(String title)
      Specified by:
      setTitle in interface org.bukkit.inventory.meta.BookMeta
    • hasAuthor

      public boolean hasAuthor()
      Specified by:
      hasAuthor in interface org.bukkit.inventory.meta.BookMeta
    • getAuthor

      public String getAuthor()
      Specified by:
      getAuthor in interface org.bukkit.inventory.meta.BookMeta
    • setAuthor

      public void setAuthor(String author)
      Specified by:
      setAuthor in interface org.bukkit.inventory.meta.BookMeta
    • getPage

      public String getPage(int page)
      Specified by:
      getPage in interface org.bukkit.inventory.meta.BookMeta
    • setPage

      public void setPage(int page, String text)
      Specified by:
      setPage in interface org.bukkit.inventory.meta.BookMeta
    • getPages

      public List<String> getPages()
      Specified by:
      getPages in interface org.bukkit.inventory.meta.BookMeta
    • setPages

      public void setPages(String... pages)
      Specified by:
      setPages in interface org.bukkit.inventory.meta.BookMeta
    • setPages

      public void setPages(List<String> pages)
      Specified by:
      setPages in interface org.bukkit.inventory.meta.BookMeta
    • addPage

      public void addPage(String... pages)
      Specified by:
      addPage in interface org.bukkit.inventory.meta.BookMeta
    • getPageCount

      public int getPageCount()
      Specified by:
      getPageCount in interface org.bukkit.inventory.meta.BookMeta
    • clone

      public BookMetaMock clone()
      Specified by:
      clone in interface org.bukkit.inventory.meta.BookMeta
      Specified by:
      clone in interface org.bukkit.inventory.meta.Damageable
      Specified by:
      clone in interface org.bukkit.inventory.meta.ItemMeta
      Specified by:
      clone in interface org.bukkit.inventory.meta.Repairable
      Overrides:
      clone in class ItemMetaMock
    • hasGeneration

      public boolean hasGeneration()
      Specified by:
      hasGeneration in interface org.bukkit.inventory.meta.BookMeta
    • getGeneration

      public org.bukkit.inventory.meta.BookMeta.Generation getGeneration()
      Specified by:
      getGeneration in interface org.bukkit.inventory.meta.BookMeta
    • setGeneration

      public void setGeneration(org.bukkit.inventory.meta.BookMeta.Generation generation)
      Specified by:
      setGeneration in interface org.bukkit.inventory.meta.BookMeta
    • spigot

      public org.bukkit.inventory.meta.BookMeta.Spigot spigot()
      Specified by:
      spigot in interface org.bukkit.inventory.meta.BookMeta