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

    Constructors
    Modifier
    Constructor
    Description
    protected
    CancellableStargatePortalEvent(@NotNull Portal portal, boolean async)
    Instantiates a new cancellable stargate event
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    setCancelled(boolean cancelled)
     

    Methods inherited from class org.sgrewritten.stargate.api.event.portal.StargatePortalEvent

    getPortal

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, getHandlers, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • CancellableStargatePortalEvent

      protected CancellableStargatePortalEvent(@NotNull @NotNull Portal portal, boolean async)
      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 interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable