Package net.raidstone.wgevents.events
Class RegionsChangedEvent
java.lang.Object
org.bukkit.event.Event
net.raidstone.wgevents.events.RegionsChangedEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class RegionsChangedEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
- Since:
- 12/12/2019
- Version:
- 1.0.0
- Author:
- Weby & Anrza (info@raidstone.net)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionRegionsChangedEvent(UUID playerUUID, @NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> previous, @NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> current)This even is fired whenever a region is entered. -
Method Summary
Modifier and TypeMethodDescription@NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion>static org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerList@Nullable org.bukkit.entity.Player@NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion>@NotNull UUIDgetUUID()booleanvoidsetCancelled(boolean cancelled)Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
RegionsChangedEvent
public RegionsChangedEvent(UUID playerUUID, @NotNull @NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> previous, @NotNull @NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> current)This even is fired whenever a region is entered. It may be fired multiple times per tick, if several regions are entered at the same time.- Parameters:
playerUUID- The UUID of the player entering the region.previous- Set of WorldGuard's ProtectedRegion the player was in before this eventcurrent- Set of WorldGUard's ProtectedRegion the player is currently in
-
-
Method Details
-
getHandlerList
@Contract(pure=true) public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getUUID
-
getPlayer
@Nullable public @Nullable org.bukkit.entity.Player getPlayer() -
getCurrentRegionsNames
-
getPreviousRegionsNames
-
getCurrentRegions
@NotNull public @NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> getCurrentRegions() -
getPreviousRegions
@NotNull public @NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> getPreviousRegions() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled)- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-