Class StargateDestroyPortalEvent
java.lang.Object
org.bukkit.event.Event
org.sgrewritten.stargate.api.event.portal.StargatePortalEvent
org.sgrewritten.stargate.api.event.portal.CancellableStargatePortalEvent
org.sgrewritten.stargate.api.event.portal.StargateDestroyPortalEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionStargateDestroyPortalEvent
(@NotNull Portal portal, BlockEventType cause) Instantiates a new cancellable stargate event -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
static org.bukkit.event.HandlerList
Gets a handler-list containing all event handlers@NotNull org.bukkit.event.HandlerList
Methods inherited from class org.sgrewritten.stargate.api.event.portal.CancellableStargatePortalEvent
isCancelled, setCancelled
Methods inherited from class org.sgrewritten.stargate.api.event.portal.StargatePortalEvent
getPortal
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
StargateDestroyPortalEvent
Instantiates a new cancellable stargate event- Parameters:
portal
-The portal involved in this stargate event
-
-
Method Details
-
getCause
- Returns:
The event that caused this portal destruction
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Gets a handler-list containing all event handlers- Returns:
A handler-list with all event handlers
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-