Interface NodeValidationProcessor

All Superinterfaces:
Processor

public interface NodeValidationProcessor extends Processor
A processor that validates whether a node (PathPosition) or the transition to it is permissible during pathfinding. If any validator returns false for a node, that node (or path segment) will typically be excluded from the search.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the current node (PathPosition) (or the transition to it from the previous node) is valid according to the logic of this validator.

    Methods inherited from interface de.bsommerfeld.pathetic.api.pathing.processing.Processor

    finalizeSearch, initializeSearch
  • Method Details

    • isValid

      boolean isValid(NodeEvaluationContext context)
      Checks if the current node (PathPosition) (or the transition to it from the previous node) is valid according to the logic of this validator.
      Parameters:
      context - The evaluation context for the current node.
      Returns:
      true if the node/transition is considered valid, false otherwise.