Class XPrisonBlockBreakEvent

java.lang.Object
org.bukkit.event.Event
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

    Constructors
    Constructor
    Description
    XPrisonBlockBreakEvent(org.bukkit.entity.Player player, List<org.bukkit.block.Block> blocks)
    Constructs a new XPrisonBlockBreakEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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

      public XPrisonBlockBreakEvent(org.bukkit.entity.Player player, List<org.bukkit.block.Block> blocks)
      Constructs a new XPrisonBlockBreakEvent.
      Parameters:
      player - the player who broke the blocks
      blocks - 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 class org.bukkit.event.Event
      Returns:
      the handler list