程序包 cn.nukkit.item

类 ItemFishingRod

所有已实现的接口:
BlockID, ItemDurable, ItemID, Cloneable

public class ItemFishingRod extends ItemTool
从以下版本开始:
2016/1/14
作者:
Snake1999
  • 构造器详细资料

    • ItemFishingRod

      public ItemFishingRod()
    • ItemFishingRod

      public ItemFishingRod(Integer meta)
    • ItemFishingRod

      public ItemFishingRod(Integer meta, int count)
  • 方法详细资料

    • getEnchantAbility

      public int getEnchantAbility()
      覆盖:
      getEnchantAbility 在类中 ItemTool
    • onClickAir

      public boolean onClickAir(Player player, Vector3 directionVector)
      从类复制的说明: Item
      Called when a player uses the item on air, for example throwing a projectile. Returns whether the item was changed, for example count decrease or durability change.
      覆盖:
      onClickAir 在类中 Item
      参数:
      player - player
      directionVector - direction
      返回:
      item changed
    • getMaxDurability

      public int getMaxDurability()
      覆盖:
      getMaxDurability 在类中 Item
    • noDamageOnAttack

      public boolean noDamageOnAttack()
      从类复制的说明: ItemTool
      No damage to item when it's used to attack entities
      覆盖:
      noDamageOnAttack 在类中 ItemTool
      返回:
      whether the item should take damage when used to attack entities
    • noDamageOnBreak

      public boolean noDamageOnBreak()
      从类复制的说明: ItemTool
      No damage to item when it's used to break blocks
      覆盖:
      noDamageOnBreak 在类中 ItemTool
      返回:
      whether the item should take damage when used to break blocks