Class ItemCarrotOnAStick

All Implemented Interfaces:
BlockID, ItemDurable, ItemID, Cloneable

public class ItemCarrotOnAStick extends ItemTool
Since:
21.03.17
Author:
lion
  • Constructor Details

    • ItemCarrotOnAStick

      public ItemCarrotOnAStick()
    • ItemCarrotOnAStick

      public ItemCarrotOnAStick(Integer meta)
    • ItemCarrotOnAStick

      public ItemCarrotOnAStick(Integer meta, int count)
  • Method Details

    • getMaxDurability

      public int getMaxDurability()
      Overrides:
      getMaxDurability in class Item
    • getMaxStackSize

      public int getMaxStackSize()
      Overrides:
      getMaxStackSize in class ItemTool
    • noDamageOnAttack

      public boolean noDamageOnAttack()
      Description copied from class: ItemTool
      No damage to item when it's used to attack entities
      Overrides:
      noDamageOnAttack in class ItemTool
      Returns:
      whether the item should take damage when used to attack entities
    • noDamageOnBreak

      public boolean noDamageOnBreak()
      Description copied from class: ItemTool
      No damage to item when it's used to break blocks
      Overrides:
      noDamageOnBreak in class ItemTool
      Returns:
      whether the item should take damage when used to break blocks