Class FairyRingWebNode
- java.lang.Object
-
- org.dreambot.api.methods.walking.web.node.AbstractWebNode
-
- org.dreambot.api.methods.walking.web.node.impl.pathaware.SelfConnectingWebNode
-
- org.dreambot.api.methods.walking.web.node.impl.pathaware.FairyRingWebNode
-
- All Implemented Interfaces:
PathAwareWebNode
,Locatable
public class FairyRingWebNode extends SelfConnectingWebNode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addLocationToIgnoreRequirements(FairyLocation location)
boolean
execute(AbstractWebNode next)
This is the same asAbstractWebNode.execute()
except the web walker will pass the next web node in the path after this node.static java.util.List<FairyRingWebNode>
getFairyRingNodes()
java.util.List<ConditionalLocation>
getLocations()
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 scriptstatic void
removeLocationToIgnoreRequirements(FairyLocation location)
static void
reset()
-
Methods inherited from class org.dreambot.api.methods.walking.web.node.impl.pathaware.SelfConnectingWebNode
getConnections, getLocation, hasRequirements, toString
-
Methods inherited from class org.dreambot.api.methods.walking.web.node.AbstractWebNode
addConnections, addDualConnections, addIncomingConnections, addOutgoingConnections, clear, distance, equals, execute, forceNext, 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
-
addLocationToIgnoreRequirements
public static void addLocationToIgnoreRequirements(FairyLocation location)
-
removeLocationToIgnoreRequirements
public static void removeLocationToIgnoreRequirements(FairyLocation location)
-
reset
public static void reset()
-
getFairyRingNodes
public static java.util.List<FairyRingWebNode> getFairyRingNodes()
-
execute
public boolean execute(AbstractWebNode next)
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()
.- Parameters:
next
- 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
-
getLocations
public java.util.List<ConditionalLocation> getLocations()
- Specified by:
getLocations
in classSelfConnectingWebNode
-
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
-
getRequiredItems
public java.util.List<RequiredItem> getRequiredItems()
- Overrides:
getRequiredItems
in classAbstractWebNode
-
-