Class RegionBlockBreakEvent

java.lang.Object
org.bukkit.event.Event
me.fami6xx.rpuniverse.core.api.RegionBlockBreakEvent

public class RegionBlockBreakEvent extends org.bukkit.event.Event
Event that is called when a player tries to break a block in a region.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    RegionBlockBreakEvent​(List<Region> regions, org.bukkit.event.block.BlockBreakEvent event)
    Constructs a new RegionBlockBreakEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.event.block.BlockBreakEvent
    Gets the original BlockBreakEvent.
    static org.bukkit.event.HandlerList
    Gets the static handler list for this event.
    @NotNull org.bukkit.event.HandlerList
    Gets the list of handlers for this event.
    Gets the region where the block break attempt occurred.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegionBlockBreakEvent

      public RegionBlockBreakEvent(List<Region> regions, org.bukkit.event.block.BlockBreakEvent event)
      Constructs a new RegionBlockBreakEvent.
      Parameters:
      regions - the regions where the block break attempt occurred
      event - the original BlockBreakEvent
  • Method Details

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Gets the list of handlers for this event.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      the list of handlers
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the static handler list for this event.
      Returns:
      the static handler list
    • getRegions

      public List<Region> getRegions()
      Gets the region where the block break attempt occurred.
      Returns:
      the region
    • getEvent

      public org.bukkit.event.block.BlockBreakEvent getEvent()
      Gets the original BlockBreakEvent.
      Returns:
      the original BlockBreakEvent