Class XPrisonBlockBreakEvent
java.lang.Object
org.bukkit.event.Event
dev.drawethree.xprison.api.shared.events.XPrisonEvent
dev.drawethree.xprison.api.shared.events.player.XPrisonPlayerEvent
dev.drawethree.xprison.api.tokens.events.XPrisonBlockBreakEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class XPrisonBlockBreakEvent
extends XPrisonPlayerEvent
implements org.bukkit.event.Cancellable
Event fired when a player breaks blocks within a mine, potentially with custom enchantments.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionXPrisonBlockBreakEvent
(org.bukkit.entity.Player player, List<org.bukkit.block.Block> blocks) Constructs a new XPrisonBlockBreakEvent. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Returns the static handler list for this event.org.bukkit.event.HandlerList
Returns the handler list for this event instance.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
XPrisonBlockBreakEvent
Constructs a new XPrisonBlockBreakEvent.- Parameters:
player
- the player who broke the blocksblocks
- the list of blocks that were broken
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Returns the static handler list for this event.- Returns:
- the handler list
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()Returns the handler list for this event instance.- Specified by:
getHandlers
in classorg.bukkit.event.Event
- Returns:
- the handler list
-