Class Minigames

java.lang.Object
net.storm.sdk.widgets.Minigames

public class Minigames extends Object
Provides utility methods for interacting with the minigames interface and teleports.

The minigames interface provides access to various minigame-related features, including the ability to teleport to minigame locations. Minigame teleports have a cooldown period between uses.

Common minigame destinations include:

  • Clan Wars
  • Pest Control
  • Barbarian Assault
  • Castle Wars
  • And many more...

Example Usage:


 // Check if we can teleport before attempting
 if (Minigames.canTeleport()) {
     Minigames.teleport(MinigameTeleport.CLAN_WARS);
 }

 // Open the minigames interface
 if (!Minigames.isOpen()) {
     Minigames.open();
 }

 // Check when the last teleport was used
 Instant lastUsage = Minigames.getLastMinigameTeleportUsage();
 
See Also:
  • Constructor Details

    • Minigames

      public Minigames()
  • Method Details

    • canTeleport

      public static boolean canTeleport()
      Checks whether the minigame teleport is currently available.

      Minigame teleports have a 20-minute cooldown between uses.

      Returns:
      true if a minigame teleport can be used, false if on cooldown
    • teleport

      public static boolean teleport(MinigameTeleport destination)
      Teleports to the specified minigame destination.

      This will open the minigames interface if necessary and select the destination.

      Parameters:
      destination - the minigame teleport destination
      Returns:
      true if the teleport was initiated successfully, false otherwise
    • open

      public static boolean open()
      Opens the minigames interface.
      Returns:
      true if the interface was successfully opened, false otherwise
    • isOpen

      public static boolean isOpen()
      Checks whether the minigames interface is currently open.
      Returns:
      true if the minigames interface is open, false otherwise
    • isTabOpen

      public static boolean isTabOpen()
      Checks whether the minigames tab is currently open.

      This differs from isOpen() in that it checks the tab state rather than the interface visibility.

      Returns:
      true if the minigames tab is open, false otherwise
    • getLastMinigameTeleportUsage

      public static Instant getLastMinigameTeleportUsage()
      Retrieves the timestamp of the last minigame teleport usage.

      This can be used to calculate remaining cooldown time.

      Returns:
      the instant when the minigame teleport was last used, or null if never used