Class ItemSwordNetherite

All Implemented Interfaces:
BlockID, ItemDurable, ItemID, Cloneable

@Since("1.4.0.0-PN") public class ItemSwordNetherite extends ItemTool
  • Constructor Details

    • ItemSwordNetherite

      @Since("1.4.0.0-PN") public ItemSwordNetherite()
    • ItemSwordNetherite

      @Since("1.4.0.0-PN") public ItemSwordNetherite(Integer meta)
    • ItemSwordNetherite

      @Since("1.4.0.0-PN") public ItemSwordNetherite(Integer meta, int count)
  • Method Details

    • getMaxDurability

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

      Define the maximum durability value of the item

      Overrides:
      getMaxDurability in class Item
      Returns:
    • isSword

      public boolean isSword()
      Description copied from class: Item
      定义物品是否为剑

      Define if the item is a Sword

      Overrides:
      isSword in class ItemTool
      Returns:
    • getTier

      public int getTier()
      Description copied from class: Item
      定义物品的挖掘等级

      Define the item Tier level

      Overrides:
      getTier in class Item
      Returns:
    • getAttackDamage

      public int getAttackDamage()
      Description copied from class: Item
      定义物品的攻击伤害

      Define the attackdamage of an item

      Overrides:
      getAttackDamage in class Item
      Returns:
    • isLavaResistant

      @PowerNukkitOnly public boolean isLavaResistant()
      Description copied from class: Item
      这个物品如下界合金套一样能在岩浆上飘浮

      If the item is resistant to lava and fire and can float on lava like if it was on water.

      Overrides:
      isLavaResistant in class Item