Class BookItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BookItem
All Implemented Interfaces:
ItemConvertible

public class BookItem
extends Item
  • Constructor Details

  • Method Details

    • isEnchantable

      public boolean isEnchantable​(ItemStack stack)
      Overrides:
      isEnchantable in class Item
    • getEnchantability

      public int getEnchantability()
      Gets the enchantability of an item. This specifies the ability of an item to receive enchantments when enchanted using an enchanting table. As the value increases, the amount and level of enchantments applied increase.

      If the value of this method is 0, the item cannot be enchanted using an enchanting table.

      Overrides:
      getEnchantability in class Item