Class EnchantedBook


  • public class EnchantedBook
    extends Object
    Class that represents an enchantment book
    • Constructor Detail

      • EnchantedBook

        public EnchantedBook​(Enchantment enchantment,
                             int level)
    • Method Detail

      • getEnchantment

        public Enchantment getEnchantment()
        Returns the enchantment that this book holds
        Returns:
        the enchantment that this book holds
      • getLevel

        public int getLevel()
        Returns the enchantment level that this book holds
        Returns:
        the enchantment level that this book holds
      • getBook

        public ItemStack getBook()
        Returns the itemstack the correlates with this book
        Returns:
        the itemstack the correlates with this book