Class ItemHoe


public class ItemHoe extends ItemTool
  • Constructor Details

    • ItemHoe

      public ItemHoe()
  • Method Details

    • onToolRightClick

      public boolean onToolRightClick(GlowPlayer player, GlowBlock target, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc, org.bukkit.inventory.EquipmentSlot hand)
      Description copied from class: ItemTool
      Called when a player used (right clicked with) the tool.
      Overrides:
      onToolRightClick in class ItemTool
      Parameters:
      player - The player using the tool
      target - The block right clicked with the tool
      face - The clicked BlockFace
      holding - The tool
      clickedLoc - The click location on the block
      hand - The hand slot of this item
      Returns:
      true if the tool's durability should be decreased, false otherwise