Package de.bsommerfeld.pathetic.api.pathing.processing


package de.bsommerfeld.pathetic.api.pathing.processing
Provides interfaces and classes for extending the core pathfinding logic of "pathetic" through a customizable processor pipeline.

The processor system allows users to inject custom logic for:

  • Node Validation (NodeValidationProcessor): Determining whether a PathPosition is traversable or meets specific criteria. Users are responsible for implementing validators for fundamental checks like basic traversability (e.g., using a NavigationPointProvider) and world boundaries, as the core engine is designed to be highly generic.
  • Cost Calculation (NodeCostProcessor): Modifying the cost of traversing to a node, allowing for terrain-specific penalties, incentives, or other dynamic cost adjustments.
Processors operate within a defined lifecycle (see Processor) and are provided with contextual information for the current search (SearchContext) and the specific node being evaluated (NodeEvaluationContext).

Users can configure a list of validators and cost calculators via the PathfinderConfiguration. The engine will execute these processors in the provided order.

Since:
5.0.0