Class WebPathQuery
- java.lang.Object
-
- org.dreambot.api.methods.walking.pathfinding.impl.web.WebPathQuery
-
public class WebPathQuery extends java.lang.Object
Web Path Query to calculate a possible web path from a tile to a tile with the option of including the bank cache for required items.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebPathQuery.WebPathQueryBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebPathQuery.WebPathQueryBuilder
builder()
WebPathResponse
calculate()
Calculates and returns aWebPathResponse
Sets the calculated response to the fieldcalculated
boolean
canUseBankCache()
WebPathResponse
getCalculated()
Tile
getFrom()
GlobalPath<AbstractWebNode>
getGlobalPath()
Returns aGlobalPath
that contains all of the web nodes from the calculated response.Tile
getTo()
java.util.List<Item>
getWithItems()
boolean
hasRequiredItems()
Checks to see if you have all required items for the calculatedWebPathResponse
boolean
isUseBankCache()
void
setCalculated(WebPathResponse calculated)
void
setFrom(Tile from)
void
setTo(Tile to)
void
setUseBankCache(boolean useBankCache)
void
setWithItems(java.util.List<Item> withItems)
-
-
-
Method Detail
-
canUseBankCache
public boolean canUseBankCache()
-
calculate
public WebPathResponse calculate()
Calculates and returns aWebPathResponse
Sets the calculated response to the fieldcalculated
-
hasRequiredItems
public boolean hasRequiredItems()
Checks to see if you have all required items for the calculatedWebPathResponse
- Returns:
- True if you have all required items, false if you don't have all required items or path has not been calculated yet.
-
getGlobalPath
public GlobalPath<AbstractWebNode> getGlobalPath()
Returns aGlobalPath
that contains all of the web nodes from the calculated response. Returns empty global path if path has not been calculated yet.
-
builder
public static WebPathQuery.WebPathQueryBuilder builder()
-
getFrom
public Tile getFrom()
-
getTo
public Tile getTo()
-
isUseBankCache
public boolean isUseBankCache()
-
getWithItems
public java.util.List<Item> getWithItems()
-
getCalculated
public WebPathResponse getCalculated()
-
setFrom
public void setFrom(Tile from)
-
setTo
public void setTo(Tile to)
-
setUseBankCache
public void setUseBankCache(boolean useBankCache)
-
setWithItems
public void setWithItems(java.util.List<Item> withItems)
-
setCalculated
public void setCalculated(WebPathResponse calculated)
-
-