firstFailedRecipePredicate

Returns the first CRecipePredicate that rejects context, or null when all of them pass.

Evaluates predicates in order and stops at the first failure, exactly as getRecipePredicateResults does, so this can be used in its place when the caller needs to report which predicate failed rather than only whether one did. The returned index is the position within predicates and identifies a predicate that did not override CRecipePredicate.name.

Return

Pair The failing predicate's index paired with the predicate itself, or null when nothing failed

Since

5.3.0

Parameters

context

Context of inspection