Class WebPathQuery
- java.lang.Object
-
- org.dreambot.api.methods.walking.pathfinding.impl.web.WebPathQuery
-
public class WebPathQuery extends java.lang.ObjectWeb 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 classWebPathQuery.WebPathQueryBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebPathQuery.WebPathQueryBuilderbuilder()WebPathResponsecalculate()Calculates and returns aWebPathResponseSets the calculated response to the fieldcalculatedbooleancanUseBankCache()WebPathResponsegetCalculated()TilegetFrom()GlobalPath<AbstractWebNode>getGlobalPath()Returns aGlobalPaththat contains all of the web nodes from the calculated response.TilegetTo()java.util.List<Item>getWithItems()booleanhasRequiredItems()Checks to see if you have all required items for the calculatedWebPathResponsebooleanisUseBankCache()voidsetCalculated(WebPathResponse calculated)voidsetFrom(Tile from)voidsetTo(Tile to)voidsetUseBankCache(boolean useBankCache)voidsetWithItems(java.util.List<Item> withItems)
-
-
-
Method Detail
-
canUseBankCache
public boolean canUseBankCache()
-
calculate
public WebPathResponse calculate()
Calculates and returns aWebPathResponseSets 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 aGlobalPaththat 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)
-
-