Package net.storm.api.widgets
Interface IMinigames
public interface IMinigames
Interface for interacting with the minigame teleport system in the game.
This interface provides methods to access the minigame teleport interface, teleport to various minigame locations, and check teleport availability and cooldowns. Minigame teleports have a 20-minute cooldown between uses.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the minigame teleport can currently be used.Gets the timestamp of the last minigame teleport usage.booleanisOpen()Checks if the minigame teleport interface is currently open.booleanChecks if the minigame tab in the quest/achievement diary interface is open.booleanopen()Opens the minigame teleport interface.booleanteleport(MinigameTeleport destination) Teleports the player to the specified minigame destination.
-
Method Details
-
canTeleport
boolean canTeleport()Checks if the minigame teleport can currently be used. The teleport has a 20-minute cooldown between uses.- Returns:
trueif the teleport is available,falseif on cooldown
-
teleport
Teleports the player to the specified minigame destination.- Parameters:
destination- the minigame teleport destination- Returns:
trueif the teleport was initiated successfully,falseotherwise
-
open
boolean open()Opens the minigame teleport interface.- Returns:
trueif the interface was successfully opened,falseotherwise
-
isOpen
boolean isOpen()Checks if the minigame teleport interface is currently open.- Returns:
trueif the interface is open,falseotherwise
-
isTabOpen
boolean isTabOpen()Checks if the minigame tab in the quest/achievement diary interface is open.- Returns:
trueif the minigame tab is open,falseotherwise
-
getLastMinigameTeleportUsage
Instant getLastMinigameTeleportUsage()Gets the timestamp of the last minigame teleport usage. This can be used to calculate remaining cooldown time.- Returns:
- the instant when the teleport was last used, or
nullif never used
-