Package me.fami6xx.rpuniverse.core.api
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
ConstructorsConstructorDescriptionRegionBlockBreakEvent(List<Region> regions, org.bukkit.event.block.BlockBreakEvent event)Constructs a newRegionBlockBreakEvent. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.event.block.BlockBreakEventgetEvent()Gets the original BlockBreakEvent.static org.bukkit.event.HandlerListGets the static handler list for this event.@NotNull org.bukkit.event.HandlerListGets 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
-
Constructor Details
-
RegionBlockBreakEvent
Constructs a newRegionBlockBreakEvent.- Parameters:
regions- the regions where the block break attempt occurredevent- the original BlockBreakEvent
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Gets the list of handlers for this event.- Specified by:
getHandlersin classorg.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
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
-