Class CancellableStargatePortalEvent
java.lang.Object
org.bukkit.event.Event
org.sgrewritten.stargate.api.event.portal.StargatePortalEvent
org.sgrewritten.stargate.api.event.portal.CancellableStargatePortalEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
- Direct Known Subclasses:
StargateClosePortalEvent
,StargateDestroyPortalEvent
,StargateSendMessagePortalEvent
public abstract class CancellableStargatePortalEvent
extends StargatePortalEvent
implements org.bukkit.event.Cancellable
A Stargate event which can be cancelled
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ModifierConstructorDescriptionprotected
CancellableStargatePortalEvent
(@NotNull Portal portal, boolean async) Instantiates a new cancellable stargate event -
Method Summary
Methods inherited from class org.sgrewritten.stargate.api.event.portal.StargatePortalEvent
getPortal
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, getHandlers, isAsynchronous
-
Constructor Details
-
CancellableStargatePortalEvent
Instantiates a new cancellable stargate event- Parameters:
portal
-The portal involved in this stargate event
async
-Whether the event is asynchronous
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-