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 booleanequals(java.lang.Object o)booleanexecute(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.MagicCarpetLocationgetLocation()static java.util.List<MagicCarpetWebNode>getMagicCarpetNodes()java.util.List<RequiredItem>getRequiredItems()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 nodejava.lang.StringtoString()-
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, getRegionId, tileDistance
-
-
-
-
Method Detail
-
getMagicCarpetNodes
public static java.util.List<MagicCarpetWebNode> getMagicCarpetNodes()
-
execute
public boolean execute(AbstractWebNode destinationNode)
Description copied from interface:PathAwareWebNodeThis 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:
executein 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:
getRequiredItemsin classAbstractWebNode
-
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
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractWebNode
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractWebNode
-
getLocation
public org.dreambot.api.methods.walking.web.node.impl.pathaware.MagicCarpetWebNode.MagicCarpetLocation getLocation()
-
-