Class MagicCarpetWebNode
- java.lang.Object
-
- org.dreambot.api.methods.walking.web.node.AbstractWebNode
-
- org.dreambot.api.methods.walking.web.node.impl.pathaware.MagicCarpetWebNode
-
- All Implemented Interfaces:
PathAwareWebNode
,Locatable
public class MagicCarpetWebNode extends AbstractWebNode implements PathAwareWebNode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
boolean
execute(AbstractWebNode destinationNode)
This is the same asAbstractWebNode.execute()
except the web walker will pass the next web node in the path after this node.org.dreambot.api.methods.walking.web.node.impl.pathaware.MagicCarpetWebNode.MagicCarpetLocation
getLocation()
static java.util.List<MagicCarpetWebNode>
getMagicCarpetNodes()
java.util.List<RequiredItem>
getRequiredItems()
WebNodeType
getType()
Returns the WebNodeType of this node, used during path finding to ensure they're not disabled by the scriptboolean
hasRequirements()
This is used to determine during path finding if the current player can use this nodejava.lang.String
toString()
-
Methods inherited from class org.dreambot.api.methods.walking.web.node.AbstractWebNode
addConnections, addDualConnections, addIncomingConnections, addOutgoingConnections, clear, distance, execute, forceNext, 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, tileDistance
-
-
-
-
Method Detail
-
getMagicCarpetNodes
public static java.util.List<MagicCarpetWebNode> getMagicCarpetNodes()
-
execute
public boolean execute(AbstractWebNode destinationNode)
Description copied from interface:PathAwareWebNode
This is the same asAbstractWebNode.execute()
except the web walker will pass the next web node in the path after this node.Important note: if your node implements this interface, the walker will call
PathAwareWebNode.execute(AbstractWebNode)
instead ofAbstractWebNode.execute()
.- Specified by:
execute
in interfacePathAwareWebNode
- Parameters:
destinationNode
- the web node after this node in the web path, or null if this is the last web node- Returns:
- true if the node is successfully handled, false otherwise
-
getRequiredItems
public java.util.List<RequiredItem> getRequiredItems()
- Overrides:
getRequiredItems
in classAbstractWebNode
-
hasRequirements
public boolean hasRequirements()
Description copied from class:AbstractWebNode
This is used to determine during path finding if the current player can use this node- Overrides:
hasRequirements
in classAbstractWebNode
- Returns:
- true if it's usable by the current player, false otherwise
-
getType
public WebNodeType getType()
Description copied from class:AbstractWebNode
Returns the WebNodeType of this node, used during path finding to ensure they're not disabled by the script- Overrides:
getType
in classAbstractWebNode
- Returns:
- the type of web node
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractWebNode
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractWebNode
-
getLocation
public org.dreambot.api.methods.walking.web.node.impl.pathaware.MagicCarpetWebNode.MagicCarpetLocation getLocation()
-
-