java.lang.Object
org.bukkit.inventory.ItemStack
me.gigawartrex.smalladditions.helpers.Book
All Implemented Interfaces:
Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.Translatable

public class Book extends org.bukkit.inventory.ItemStack
Class for handling "/sa" commands.
Author:
Paul Ferlitz
  • Constructor Summary

    Constructors
    Constructor
    Description
    Book(String fileName, String author, String title)
    Class constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.meta.BookMeta
    Method to get the book's metadata.

    Methods inherited from class org.bukkit.inventory.ItemStack

    addEnchantment, addEnchantments, addUnsafeEnchantment, addUnsafeEnchantments, clone, containsEnchantment, deserialize, equals, getAmount, getData, getDurability, getEnchantmentLevel, getEnchantments, getItemMeta, getMaxStackSize, getTranslationKey, getType, hashCode, hasItemMeta, isSimilar, removeEnchantment, serialize, setAmount, setData, setDurability, setItemMeta, setType, toString

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Book

      public Book(String fileName, String author, String title)
      Class constructor.
      Parameters:
      fileName - the name of the file containing the text for this book
      author - the book's author
      title - the book's title
  • Method Details

    • getMeta

      public org.bukkit.inventory.meta.BookMeta getMeta()
      Method to get the book's metadata.
      Returns:
      the book's metadata