Minigames
Threaded Minigames API.
ClassRLPlugins API
public class MinigamesThese helpers wait. Call them only from VitaPlugin.loop(); on the game thread, for example in a @Subscribe method, they freeze the game.
Members
Static methods
- booleancanTeleport()
Checks if the player can currently use minigame teleport.
- InstantgetLastMinigameTeleportUsage()
Gets the time of the last minigame teleport usage.
- booleanhopToSuggestedWorld()
Hop to suggested world.
- booleanisOpen()
Checks if the minigames teleport interface is currently open.
- booleanisTabOpen()
Checks if the minigames tab is currently open.
- booleanopen()
Opens the minigames tab and the minigames teleport interface.
- booleanteleport(Minigames.Destination)
Attempts to teleport to the specified minigame destination.
canTeleport()static
public static boolean canTeleport()Checks if the player can currently use minigame teleport.
Returns
True if the player can use minigame teleport, false otherwise.
getLastMinigameTeleportUsage()static
public static Instant getLastMinigameTeleportUsage()Gets the time of the last minigame teleport usage.
Returns
An Instant representing the time of the last minigame teleport usage.
hopToSuggestedWorld()static
public static boolean hopToSuggestedWorld()Hop to suggested world.
isOpen()static
public static boolean isOpen()Checks if the minigames teleport interface is currently open.
Returns
True if the minigames teleport interface is open, false otherwise.
isTabOpen()static
public static boolean isTabOpen()Checks if the minigames tab is currently open.
Returns
True if the minigames tab is open, false otherwise.
open()static
public static boolean open()Opens the minigames tab and the minigames teleport interface.
Returns
True if the minigames teleport interface is open, false otherwise.
teleport(Minigames.Destination)static
public static boolean teleport(Minigames.Destination destination)Attempts to teleport to the specified minigame destination.
Parameters
destination- The destination to teleport to.
Returns
True if the teleport was initiated, false otherwise.
Also allowed
Every class has these, as in plain Java.
equals, toString