Class Walker


  • public class Walker
    extends java.lang.Object
    Single-owner walk executor over a computed LocalPathfinder route. One Walker instance owns at most one active route. Each game tick the caller (plugin) invokes onTick(); Walker submits the next hop when the player reaches the current waypoint, detects stalls with bounded retries, and reports honest state: a submitted step is not an arrived step.
    • Method Detail

      • walkTo

        public boolean walkTo​(net.runelite.api.coords.WorldPoint destination)
        Compute and own a route to the destination using the local pathfinder. The caller must be on the client thread.
      • onTick

        public void onTick()
        Advance walker state by one game tick. Must be called from the client thread.
      • cancel

        public void cancel()
        Cancel the owned route.
      • getTarget

        public net.runelite.api.coords.WorldPoint getTarget()