PathfindingHandle

public interface PathfindingHandle implements AutoCloseable

Adapter-owned, single-destination native navigation.

The handle installs one interruptible MOVE/JUMP goal on an existing mob. Callers own route sequencing and lifecycle policy; the handle owns path creation, goal registration, progress detection and native cleanup. All methods must be called from the server thread. Active handles must have status polled once per tick so rolling long-range plans can advance.

Inheritors

Functions

Link copied to clipboard
public abstract void clearDestination()
Clears the destination and stops only the native navigation installed by this handle.
Link copied to clipboard
public abstract void close()
Idempotently unregisters the goal and releases native references.
Link copied to clipboard
public abstract boolean moveTo(Location target, double speedModifier)
Replaces the current destination.
Link copied to clipboard
public List<Location> routePreview()
Returns the current resolved route for diagnostics and authoring previews.
Link copied to clipboard
public abstract PathfindingStatus status()
Returns the latest state observed by the native goal.