Class BlockDamageAbortEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockDamageAbortEvent

public class BlockDamageAbortEvent extends BlockEvent
Called when a player stops damaging a Block.
See Also:
  • Constructor Details

  • Method Details

    • getPlayer

      @NotNull public Player getPlayer()
      Gets the player that stopped damaging the block involved in this event.
      Returns:
      The player that stopped damaging the block
    • getItemInHand

      @NotNull public ItemStack getItemInHand()
      Gets the ItemStack for the item currently in the player's hand.
      Returns:
      The ItemStack for the item currently in the player's hand
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()