CRecipe Predicate
This interface is a SAM (Single Abstract Method Interface) and only has the function (CRecipePredicate.test) that is executed during recipe determination.
Refer to the documentation of CRecipePredicate.Context for the provided context.
Since
5.0.17
Types
Link copied to clipboard
class Context @JvmOverloads constructor(val input: CraftView, val crafterId: UUID, val recipe: CRecipe, val relation: MappedRelation, val asyncContext: AsyncContext? = null)
Context for CRecipePredicate
Functions
Link copied to clipboard
Inspection method. If Context.asyncContext is non-null, periodically check AsyncContext.isInterrupted and return early when true to support cooperative cancellation.