Class StargateSignFormatPortalEvent

java.lang.Object
org.bukkit.event.Event
org.sgrewritten.stargate.api.event.portal.StargatePortalEvent
org.sgrewritten.stargate.api.event.portal.StargateSignFormatPortalEvent

public class StargateSignFormatPortalEvent extends StargatePortalEvent
  • Constructor Details

    • StargateSignFormatPortalEvent

      public StargateSignFormatPortalEvent(@NotNull @NotNull RealPortal portal, SignLine[] signLines, PortalPosition portalPosition, org.bukkit.Location location)
  • Method Details

    • getLines

      public SignLine[] getLines()
      Returns:

      The sign lines to format

    • getSign

      public org.bukkit.block.Sign getSign()
      Returns:
      The sign that is being formatted
      Throws:
      IllegalStateException -

      If no sign was found at the current location

    • getPortalPosition

      public PortalPosition getPortalPosition()
      Returns:

      The portal position of the sign that will be formatted

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets a handler-list containing all event handlers
      Returns:

      A handler-list with all event handlers