Class BlockDamageAbortEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockDamageAbortEvent
Called when a player stops damaging a Block.
- Since:
- 1.18.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class BlockEvent
block -
Constructor Summary
ConstructorsConstructorDescriptionBlockDamageAbortEvent(@NotNull Player player, @NotNull Block block, @NotNull ItemStack itemInHand) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList@NotNull HandlerList@NotNull ItemStackGets the ItemStack for the item currently in the player's hand.@NotNull PlayerGets the player that stopped damaging the block involved in this event.Methods inherited from class BlockEvent
getBlockMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BlockDamageAbortEvent
-
-
Method Details
-
getPlayer
Gets the player that stopped damaging the block involved in this event.- Returns:
- The player that stopped damaging the block
- Since:
- 1.18.1
-
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
- Since:
- 1.18.1
-
getHandlers
- Specified by:
getHandlersin classEvent- Since:
- 1.18.1
-
getHandlerList
- Since:
- 1.18.1
-