Class EnchantedBookItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.EnchantedBookItem
All Implemented Interfaces:
FeatureElement, ItemLike, IItemExtension

public class EnchantedBookItem extends Item
  • Constructor Details

    • EnchantedBookItem

      public EnchantedBookItem(Item.Properties pProperties)
  • Method Details

    • isEnchantable

      public boolean isEnchantable(ItemStack pStack)
      Checks isDamagable and if it cannot be stacked
      Overrides:
      isEnchantable in class Item
    • createForEnchantment

      public static ItemStack createForEnchantment(EnchantmentInstance pInstance)
      Returns the ItemStack of an enchanted version of this item.