Class BookItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BookItem

public class BookItem
extends Item
Mappings:
Namespace Name
official yr
intermediary net/minecraft/class_2021
named net/minecraft/item/BookItem
  • Constructor Details

    • BookItem

      public BookItem()
      Mappings:
      Namespace Name Mixin selector
      official <init> Lzw;<init>()V
      intermediary <init> Lnet/minecraft/class_2054;<init>()V
      named <init> Lnet/minecraft/item/Item;<init>()V
  • Method Details

    • isEnchantable

      public boolean isEnchantable​(ItemStack stack)
      Returns whether the current item can have enchantments. It does this by verifying that the item's maximum stack size is 1 and the item can break.
      Overrides:
      isEnchantable in class Item
      Mappings:
      Namespace Name Mixin selector
      official f_ Lzw;f_(Lzx;)Z
      intermediary method_8289 Lnet/minecraft/class_2054;method_8289(Lnet/minecraft/class_2056;)Z
      named isEnchantable Lnet/minecraft/item/Item;isEnchantable(Lnet/minecraft/item/ItemStack;)Z
    • getEnchantability

      public int getEnchantability()
      Returns the enchantability of an Item. Used by tools and armor
      Overrides:
      getEnchantability in class Item
      Returns:
      Enchantability
      See Also:
      ToolItem, ArmorItem
      Mappings:
      Namespace Name Mixin selector
      official b Lzw;b()I
      intermediary method_8269 Lnet/minecraft/class_2054;method_8269()I
      named getEnchantability Lnet/minecraft/item/Item;getEnchantability()I