类 BookItem

  • 所有已实现的接口:
    ItemConvertible

    public class BookItem
    extends Item
    Mappings:
    Namespace Name
    official bny
    intermediary net/minecraft/class_1751
    named net/minecraft/item/BookItem
    • 构造器详细资料

      • BookItem

        public BookItem​(Item.Settings settings)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbpn;<init>(Lbpn$a;)V
        intermediary <init> Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)V
        named <init> Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
    • 方法详细资料

      • isEnchantable

        public boolean isEnchantable​(ItemStack stack)
        覆盖:
        isEnchantable 在类中 Item
        Mappings:
        Namespace Name Mixin selector
        official f_ Lbpn;f_(Lbpr;)Z
        intermediary method_7870 Lnet/minecraft/class_1792;method_7870(Lnet/minecraft/class_1799;)Z
        named isEnchantable Lnet/minecraft/item/Item;isEnchantable(Lnet/minecraft/item/ItemStack;)Z
      • 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.

        覆盖:
        getEnchantability 在类中 Item
        Mappings:
        Namespace Name Mixin selector
        official c Lbpn;c()I
        intermediary method_7837 Lnet/minecraft/class_1792;method_7837()I
        named getEnchantability Lnet/minecraft/item/Item;getEnchantability()I