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.-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.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:
true
if the node/transition is considered valid,false
otherwise.
-