Class StargateSignFormatPortalEvent
java.lang.Object
org.bukkit.event.Event
org.sgrewritten.stargate.api.event.portal.StargatePortalEvent
org.sgrewritten.stargate.api.event.portal.StargateSignFormatPortalEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionStargateSignFormatPortalEvent
(@NotNull RealPortal portal, SignLine[] signLines, PortalPosition portalPosition, org.bukkit.Location location) -
Method Summary
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
-
StargateSignFormatPortalEvent
public StargateSignFormatPortalEvent(@NotNull @NotNull RealPortal portal, SignLine[] signLines, PortalPosition portalPosition, org.bukkit.Location location)
-
-
Method Details
-
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
- Returns:
The portal position of the sign that will be formatted
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.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
-