Class TeleportWebNode
- java.lang.Object
-
- org.dreambot.api.methods.walking.web.node.AbstractWebNode
-
- org.dreambot.api.methods.walking.web.node.impl.teleports.TeleportWebNode
-
- All Implemented Interfaces:
Locatable
public class TeleportWebNode extends AbstractWebNode
-
-
Constructor Summary
Constructors Constructor Description TeleportWebNode(Teleport teleport)Creates and automatically adds connections to the resulting TeleportWebNode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute()This is called by the walker to handle the actual walking, entity handling, or whatever else needed to get past this node.booleanforceNext()This is used to see if the walker shouldAbstractWebNode.execute()this node even if there's a web node further along theGlobalPaththat it can reach.java.util.List<RequiredItem>getRequiredItems()TeleportgetTeleport()static java.util.List<TeleportWebNode>getTeleportNodes()WebNodeTypegetType()Returns the WebNodeType of this node, used during path finding to ensure they're not disabled by the scriptbooleanhasRequirements()This is used to determine during path finding if the current player can use this nodestatic voidsetDefaultWeight(int defaultWeight)java.lang.StringtoString()-
Methods inherited from class org.dreambot.api.methods.walking.web.node.AbstractWebNode
addConnections, addDualConnections, addIncomingConnections, addOutgoingConnections, clear, distance, equals, getConnections, getGridX, getGridY, getIndex, getTile, getTileReference, getWeight, getX, getY, getZ, hashCode, initializeConnections, isValid, removeConnections, removeDualConnections, setConnections, setWeight, walkingDistance
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Locatable
canReach, canReach, getRegionId, tileDistance
-
-
-
-
Constructor Detail
-
TeleportWebNode
public TeleportWebNode(Teleport teleport)
Creates and automatically adds connections to the resulting TeleportWebNode- Parameters:
teleport- the Teleport to set as the destination, used for executing the teleport as well as checking for requirements
-
-
Method Detail
-
getTeleportNodes
public static java.util.List<TeleportWebNode> getTeleportNodes()
-
getType
public WebNodeType getType()
Description copied from class:AbstractWebNodeReturns the WebNodeType of this node, used during path finding to ensure they're not disabled by the script- Overrides:
getTypein classAbstractWebNode- Returns:
- the type of web node
-
hasRequirements
public boolean hasRequirements()
Description copied from class:AbstractWebNodeThis is used to determine during path finding if the current player can use this node- Overrides:
hasRequirementsin classAbstractWebNode- Returns:
- true if it's usable by the current player, false otherwise
-
execute
public boolean execute()
Description copied from class:AbstractWebNodeThis is called by the walker to handle the actual walking, entity handling, or whatever else needed to get past this node.- Overrides:
executein classAbstractWebNode- Returns:
- true if the node is successfully handled, false otherwise
-
forceNext
public boolean forceNext()
Description copied from class:AbstractWebNodeThis is used to see if the walker shouldAbstractWebNode.execute()this node even if there's a web node further along theGlobalPaththat it can reach.This defaults to false, meaning that the walker can look for another web node further in the
GlobalPath.- Overrides:
forceNextin classAbstractWebNode- Returns:
- true if the walker should execute this node next no matter what, false otherwise
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractWebNode
-
getRequiredItems
public java.util.List<RequiredItem> getRequiredItems()
- Overrides:
getRequiredItemsin classAbstractWebNode
-
getTeleport
public Teleport getTeleport()
-
setDefaultWeight
public static void setDefaultWeight(int defaultWeight)
-
-