Class ItemBookEnchanted

java.lang.Object
cn.nukkit.item.Item
cn.nukkit.item.ItemBookEnchanted
All Implemented Interfaces:
BlockID, ItemID, Cloneable
Direct Known Subclasses:
ItemCustomBookEnchanted

public class ItemBookEnchanted extends Item
Author:
MagicDroidX (Nukkit Project)
  • Constructor Details

    • ItemBookEnchanted

      public ItemBookEnchanted()
    • ItemBookEnchanted

      public ItemBookEnchanted(Integer meta)
    • ItemBookEnchanted

      public ItemBookEnchanted(Integer meta, int count)
    • ItemBookEnchanted

      @PowerNukkitXOnly @Since("1.19.60-r1") public ItemBookEnchanted(int id, Integer meta, int count, String name)
  • Method Details

    • getMaxStackSize

      public int getMaxStackSize()
      Description copied from class: Item
      定义物品堆叠的最大数量

      Define the maximum number of items to be stacked

      Overrides:
      getMaxStackSize in class Item
      Returns:
    • applyEnchantments

      @Since("1.6.0.0-PNX") @PowerNukkitOnly public boolean applyEnchantments()
      Description copied from class: Item
      该物品是否可以应用附魔效果
      Overrides:
      applyEnchantments in class Item