Class EnchantedBookItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.EnchantedBookItem
All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class EnchantedBookItem extends Item
Mappings:
Namespace Name
named net/minecraft/item/EnchantedBookItem
intermediary net/minecraft/class_1772
official cto
  • Constructor Details

    • EnchantedBookItem

      public EnchantedBookItem(Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
      intermediary <init> Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)V
      official <init> Lcul;<init>(Lcul$a;)V
  • Method Details

    • isEnchantable

      public boolean isEnchantable(ItemStack stack)
      Returns whether the given ItemStack is enchantable.

      By default, ItemStacks are enchantable if their max stack count is 1 and they can be damaged.

      Overrides:
      isEnchantable in class Item
      Returns:
      whether the given ItemStack is enchantable
      Mappings:
      Namespace Name Mixin selector
      named isEnchantable Lnet/minecraft/item/Item;isEnchantable(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7870 Lnet/minecraft/class_1792;method_7870(Lnet/minecraft/class_1799;)Z
      official a Lcul;a(Lcuq;)Z
    • forEnchantment

      public static ItemStack forEnchantment(EnchantmentLevelEntry info)
      Mappings:
      Namespace Name Mixin selector
      named forEnchantment Lnet/minecraft/item/EnchantedBookItem;forEnchantment(Lnet/minecraft/enchantment/EnchantmentLevelEntry;)Lnet/minecraft/item/ItemStack;
      intermediary method_7808 Lnet/minecraft/class_1772;method_7808(Lnet/minecraft/class_1889;)Lnet/minecraft/class_1799;
      official a Lcto;a(Ldaf;)Lcuq;