public class BlockDamageAbortEvent extends BlockEvent
Event.Result
block
Constructor and Description |
---|
BlockDamageAbortEvent(Player player,
Block block,
ItemStack itemInHand) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
ItemStack |
getItemInHand()
Gets the ItemStack for the item currently in the player's hand.
|
Player |
getPlayer()
Gets the player that stopped damaging the block involved in this event.
|
getBlock
getEventName, isAsynchronous
@NotNull public Player getPlayer()
@NotNull public ItemStack getItemInHand()
@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.