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 Link icon

    • BlockDamageAbortEvent Link icon

      public BlockDamageAbortEvent(@NotNull Player player, @NotNull Block block, @NotNull ItemStack itemInHand)
  • Method Details Link icon

    • getPlayer Link icon

      @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 Link icon

      @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 Link icon

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

      @NotNull public static HandlerList getHandlerList()