Enum BankLocation
- java.lang.Object
-
- java.lang.Enum<BankLocation>
-
- org.dreambot.api.methods.container.impl.bank.BankLocation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BankLocation>
,Locatable
public enum BankLocation extends java.lang.Enum<BankLocation> implements Locatable
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Area
getArea(int radius)
Generates an Area around the center Tile based on radiusBankType
getBankType()
Gets the BankTypeTile
getCenter()
Gets the center Tile of the bankCondition
getCondition()
Gets any requirements needed to access this bankstatic BankLocation
getNearest()
static BankLocation
getNearest(Tile tile)
Gets the nearest BankLocation to the tilestatic BankLocation
getNearest(Tile tile, boolean includeTeleports)
Gets the nearestBankLocation
to the givenTile
static BankLocation
getNearest(Entity entity)
Gets the nearest BankLocation to the entitystatic BankLocation
getNearestEuclidean(Tile tile, boolean ignoreRequirements)
Gets the nearest bank location to the entity based on euclidean distancegetNearest(Tile)
will check against web paths to find more exact distances, so takes longer This method should be quicker call, while possibly being less precise.static java.util.List<BankLocation>
getSortedValidLocations(Tile nearest)
static java.util.List<BankLocation>
getSortedValidLocations(Entity nearest)
Tile
getTile()
Gets tile of the object.static java.util.List<BankLocation>
getValidLocations()
boolean
isMembersOnly()
static void
resetCache()
java.lang.String
toString()
static BankLocation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BankLocation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Locatable
canReach, canReach, distance, getGridX, getGridY, getTileReference, getX, getY, getZ, tileDistance, walkingDistance
-
-
-
-
Enum Constant Detail
-
AL_KHARID
public static final BankLocation AL_KHARID
-
ALDARIN
public static final BankLocation ALDARIN
-
ARCEUUS
public static final BankLocation ARCEUUS
-
ARDOUGNE_NORTH
public static final BankLocation ARDOUGNE_NORTH
-
ARDOUGNE_SOUTH
public static final BankLocation ARDOUGNE_SOUTH
-
BARBARIAN_OUTPOST
public static final BankLocation BARBARIAN_OUTPOST
-
BLAST_FURNACE
public static final BankLocation BLAST_FURNACE
-
BURGH_DE_ROTT
public static final BankLocation BURGH_DE_ROTT
-
CANIFIS
public static final BankLocation CANIFIS
-
CASTLE_WARS
public static final BankLocation CASTLE_WARS
-
CATHERBY
public static final BankLocation CATHERBY
-
CIVITAS_ILLA_FORTIS_EAST
public static final BankLocation CIVITAS_ILLA_FORTIS_EAST
-
CIVITAS_ILLA_FORTIS_WEST
public static final BankLocation CIVITAS_ILLA_FORTIS_WEST
-
CORSAIR_COVE
public static final BankLocation CORSAIR_COVE
-
CRAFTING_GUILD
public static final BankLocation CRAFTING_GUILD
-
DARKMEYER
public static final BankLocation DARKMEYER
-
DRAYNOR
public static final BankLocation DRAYNOR
-
DUEL_ARENA
public static final BankLocation DUEL_ARENA
-
EDGEVILLE
public static final BankLocation EDGEVILLE
-
ETCETERIA
public static final BankLocation ETCETERIA
-
FALADOR_EAST
public static final BankLocation FALADOR_EAST
-
FALADOR_WEST
public static final BankLocation FALADOR_WEST
-
FARMING_GUILD
public static final BankLocation FARMING_GUILD
-
FEROX_ENCLAVE
public static final BankLocation FEROX_ENCLAVE
-
FISHING_GUILD
public static final BankLocation FISHING_GUILD
-
FOSSIL_ISLAND
public static final BankLocation FOSSIL_ISLAND
-
GIANTS_FOUNDRY
public static final BankLocation GIANTS_FOUNDRY
-
GNOME_STRONGHOLD
public static final BankLocation GNOME_STRONGHOLD
-
GOTR
public static final BankLocation GOTR
-
GRAND_EXCHANGE
public static final BankLocation GRAND_EXCHANGE
-
GRAND_TREE
public static final BankLocation GRAND_TREE
-
HOSIDIUS
public static final BankLocation HOSIDIUS
-
HOSIDIUS_SHORE
public static final BankLocation HOSIDIUS_SHORE
-
HOSIDIUS_KITCHEN
public static final BankLocation HOSIDIUS_KITCHEN
-
HOSIDIUS_VINERY
public static final BankLocation HOSIDIUS_VINERY
-
HUNTER_GUILD
public static final BankLocation HUNTER_GUILD
-
JATIZSO
public static final BankLocation JATIZSO
-
KELDAGRIM
public static final BankLocation KELDAGRIM
-
KOUREND_CASTLE
public static final BankLocation KOUREND_CASTLE
-
LANDS_END
public static final BankLocation LANDS_END
-
LLETYA
public static final BankLocation LLETYA
-
LOVAKENGJ_SOUTH
public static final BankLocation LOVAKENGJ_SOUTH
-
LOVAKENGJ_WEST
public static final BankLocation LOVAKENGJ_WEST
-
LUMBRIDGE
public static final BankLocation LUMBRIDGE
-
LUMBRIDGE_BASEMENT
public static final BankLocation LUMBRIDGE_BASEMENT
-
LUNAR_ISLAND
public static final BankLocation LUNAR_ISLAND
-
MAGE_BANK
public static final BankLocation MAGE_BANK
-
MINING_GUILD
public static final BankLocation MINING_GUILD
-
MISTROCK
public static final BankLocation MISTROCK
-
MOONCLAN_ISLE
public static final BankLocation MOONCLAN_ISLE
-
MOS_LEHARMLESS
public static final BankLocation MOS_LEHARMLESS
-
MOTHERLODE_MINE
public static final BankLocation MOTHERLODE_MINE
-
MOUNT_KARUULM
public static final BankLocation MOUNT_KARUULM
-
MOUNT_QUIDAMORTEM
public static final BankLocation MOUNT_QUIDAMORTEM
-
MYTHS_GUILD
public static final BankLocation MYTHS_GUILD
-
NARDAH
public static final BankLocation NARDAH
-
NEITIZNOT
public static final BankLocation NEITIZNOT
-
PEST_CONTROL
public static final BankLocation PEST_CONTROL
-
PISCATORIS
public static final BankLocation PISCATORIS
-
PORT_KHAZARD
public static final BankLocation PORT_KHAZARD
-
PORT_PHASMATYS
public static final BankLocation PORT_PHASMATYS
-
PORT_PISCARILIUS
public static final BankLocation PORT_PISCARILIUS
-
ROGUES_DEN
public static final BankLocation ROGUES_DEN
-
RUINS_OF_CAMDOZAAL
public static final BankLocation RUINS_OF_CAMDOZAAL
-
RUINS_OF_UNKAH
public static final BankLocation RUINS_OF_UNKAH
-
SEERS
public static final BankLocation SEERS
-
SHANTAY_PASS
public static final BankLocation SHANTAY_PASS
-
SHAYZIEN
public static final BankLocation SHAYZIEN
-
SHILO_VILLAGE
public static final BankLocation SHILO_VILLAGE
-
SOUL_WARS
public static final BankLocation SOUL_WARS
-
TZHAAR
public static final BankLocation TZHAAR
-
TZHAAR_EAST
public static final BankLocation TZHAAR_EAST
-
VARROCK_EAST
public static final BankLocation VARROCK_EAST
-
VARROCK_WEST
public static final BankLocation VARROCK_WEST
-
VER_SINHAZA
public static final BankLocation VER_SINHAZA
-
NORTH_PRIFDDINAS
public static final BankLocation NORTH_PRIFDDINAS
-
SOUTH_PRIFDDINAS
public static final BankLocation SOUTH_PRIFDDINAS
-
WARRIORS_GUILD
public static final BankLocation WARRIORS_GUILD
-
WINTERTODT
public static final BankLocation WINTERTODT
-
WOODCUTTING_GUILD
public static final BankLocation WOODCUTTING_GUILD
-
WOODCUTTING_GUILD_DUNGEON
public static final BankLocation WOODCUTTING_GUILD_DUNGEON
-
YANILLE
public static final BankLocation YANILLE
-
ZANARIS
public static final BankLocation ZANARIS
-
SULFUR_MINE
public static final BankLocation SULFUR_MINE
-
HALLOWED_SEPULCHER
public static final BankLocation HALLOWED_SEPULCHER
-
COOKS_GUILD
public static final BankLocation COOKS_GUILD
-
CAM_TORUM
public static final BankLocation CAM_TORUM
-
DORGESH_KAAN
public static final BankLocation DORGESH_KAAN
-
SOPHANEM_DUNGEON
public static final BankLocation SOPHANEM_DUNGEON
-
-
Method Detail
-
values
public static BankLocation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BankLocation c : BankLocation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BankLocation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getSortedValidLocations
public static java.util.List<BankLocation> getSortedValidLocations(Entity nearest)
-
getSortedValidLocations
public static java.util.List<BankLocation> getSortedValidLocations(Tile nearest)
-
getValidLocations
public static java.util.List<BankLocation> getValidLocations()
-
getNearestEuclidean
public static BankLocation getNearestEuclidean(Tile tile, boolean ignoreRequirements)
Gets the nearest bank location to the entity based on euclidean distancegetNearest(Tile)
will check against web paths to find more exact distances, so takes longer This method should be quicker call, while possibly being less precise.- Parameters:
tile
- tile to check for nearest bank locationignoreRequirements
- boolean whether to ignore bank location requirements or not- Returns:
- Nearest bank location based on euclidean distance to the tile
-
getNearest
public static BankLocation getNearest(Entity entity)
Gets the nearest BankLocation to the entity- Parameters:
entity
- Entity to find nearest BankLocation to.- Returns:
- BankLocation that is closest to Entity
-
getNearest
public static BankLocation getNearest(Tile tile)
Gets the nearest BankLocation to the tile- Parameters:
tile
- Tile to find nearest bank location to- Returns:
- BankLocation that is closest to tile
-
getNearest
public static BankLocation getNearest(Tile tile, boolean includeTeleports)
Gets the nearestBankLocation
to the givenTile
- Parameters:
tile
- Tile to find nearest bank location toincludeTeleports
- boolean for whether you want to include teleports on hand in nearest calculations- Returns:
- BankLocation that is closest, if no web path is found it uses euclidean distance
-
getNearest
public static BankLocation getNearest()
-
resetCache
public static void resetCache()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<BankLocation>
-
getCenter
public Tile getCenter()
Gets the center Tile of the bank- Returns:
- Tile of the center of the bank
-
getBankType
public BankType getBankType()
Gets the BankType- Returns:
- BankType
-
getCondition
public Condition getCondition()
Gets any requirements needed to access this bank- Returns:
- Requirements condition
-
isMembersOnly
public boolean isMembersOnly()
-
getArea
public Area getArea(int radius)
Generates an Area around the center Tile based on radius- Parameters:
radius
- Radius of the Area- Returns:
- Area generated around Bank's center Tile
-
-