Minigames.Destination
Every minigame teleport destination.
EnumRLPlugins API
public enum Minigames.DestinationThese helpers wait. Call them only from VitaPlugin.loop(); on the game thread, for example in a @Subscribe method, they freeze the game.
Values
BARBARIAN_ASSAULT, BLAST_FURNACE, BOUNTY_HUNTER, BURTHORPE_GAMES_ROOM, CASTLE_WARS, CLAN_WARS, DAGANNOTH_KINGS, FISHING_TRAWLER, GIANTS_FOUNDARY, GOD_WARS, GUARDIANS_OF_THE_RIFT, LAST_MAN_STANDING, MAGE_TRAINING_ARENA, MASTERING_MIXOLOGY, NIGHTMARE_ZONE, PEST_CONTROL, PLAYER_OWNED_HOUSES, RAT_PITS, ROYAL_TITANS, SHADES_OF_MORTTON, SHIELD_OF_ARRAV, SHOOTING_STARS, SORCERESS_GARDEN, SOUL_WARS, THEATRE_OF_BLOOD, TITHE_FARM, TOMBS_OF_AMASCUT, TROUBLE_BREWING, TZHAAR_FIGHT_PIT, VOLCANIC_MINE, NONE
Members
Methods
- Minigames.DestinationbyName(String)
Finds a minigame teleport destination by its name.
- booleancanUse()
Checks if the player can use this minigame teleport destination.
- Minigames.DestinationgetCurrent()
Gets the currently selected minigame teleport destination.
- intgetIndex()
The index.
- WorldPointgetLocation()
The location.
- StringgetName()
The name.
- booleanhasDestination()
Checks if this destination has a valid location.
- booleanisMembers()
Whether members.
- Minigames.Destinationof(int)
Finds a minigame teleport destination by its index.
byName(String)static
public static Minigames.Destination byName(String name)Finds a minigame teleport destination by its name.
Parameters
name- The name of the destination.
Returns
The matching destination, or Destination.NONE if no match is found.
canUse()
public boolean canUse()Checks if the player can use this minigame teleport destination.
Returns
True if the player can use this minigame teleport destination, false otherwise.
getCurrent()static
public static Minigames.Destination getCurrent()Gets the currently selected minigame teleport destination.
Returns
The currently selected minigame teleport destination, or Destination.NONE if none is selected.
getIndex()
public int getIndex()The index.
getLocation()
public WorldPoint getLocation()The location.
getName()
public String getName()The name.
hasDestination()
public boolean hasDestination()Checks if this destination has a valid location.
Returns
True if this destination has a valid location, false otherwise.
isMembers()
public boolean isMembers()Whether members.
of(int)static
public static Minigames.Destination of(int index)Finds a minigame teleport destination by its index.
Parameters
index- The index of the destination.
Returns
The matching destination, or Destination.NONE if no match is found.
Also allowed
Every enum has these, as in plain Java.
compareTo, equals, hashCode, name, ordinal, toString, valueOf, values