Class ItemShield

All Implemented Interfaces:
BlockID, ItemDurable, ItemID, Cloneable

@PowerNukkitDifference(since="1.4.0.0-PN", info="Extends ItemTool instead of Item only in PowerNukkit") public class ItemShield extends ItemTool
  • Constructor Details

    • ItemShield

      public ItemShield()
    • ItemShield

      public ItemShield(Integer meta)
    • ItemShield

      public ItemShield(Integer meta, int count)
    • ItemShield

      @PowerNukkitXOnly @Since("1.19.60-r1") public ItemShield(int id, Integer meta, int count, String name)
      为自定义盾牌提供的构造函数

      Constructor for custom shield

      Parameters:
      id - the id
      meta - the meta
      count - the count
      name - the 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 ItemTool
      Returns:
    • getMaxDurability

      public int getMaxDurability()
      Description copied from class: Item
      定义物品最大耐久值

      Define the maximum durability value of the item

      Overrides:
      getMaxDurability in class Item
      Returns: