PathfindingSession

public final class PathfindingSession implements PathfindingHandle

Shared state machine behind each version-specific native pathfinding goal.

This class is intentionally scheduler-free. The native goal selector drives its lifecycle and the owning plugin polls status to sequence higher-level movement.

Constructors

Link copied to clipboard
public void PathfindingSession(LivingEntity livingEntity, PathfindingDriver driver)

Functions

Link copied to clipboard
public boolean canContinueToUse()
Called by the native goal's canContinueToUse.
Link copied to clipboard
public boolean canUse()
Called by the native goal's canUse.
Link copied to clipboard
public void clearDestination()
Clears the destination and stops only the native navigation installed by this handle.
Link copied to clipboard
public void close()
Idempotently unregisters the goal and releases native references.
Link copied to clipboard
public boolean moveTo(Location target, double requestedSpeedModifier)
Replaces the current destination.
Link copied to clipboard
public void start()
Called by the native goal's start.
Link copied to clipboard
Returns the latest state observed by the native goal.
Link copied to clipboard
public void stop()
Called by the native goal's stop.
Link copied to clipboard
public void tick()
Called by the native goal's tick.

Inherited functions

Link copied to clipboard
public abstract void close()
Link copied to clipboard
public List<Location> routePreview()
Returns the current resolved route for diagnostics and authoring previews.