Interface NodeValidationProcessor
- All Superinterfaces:
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.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(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.Methods inherited from interface de.bsommerfeld.pathetic.api.pathing.processing.Processor
finalizeSearch, initializeSearch
-
Method Details
-
isValid
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:
trueif the node/transition is considered valid,falseotherwise.
-