CMatterPredicate

fun interface CMatterPredicate

A CMatter predicate function.

See also

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Context @JvmOverloads constructor(val coordinate: CoordinateComponent, val matter: CMatter, val input: ItemStack, val mapped: Map<CoordinateComponent, ItemStack>, val recipe: CRecipe, val crafterId: UUID, val asyncContext: AsyncContext? = null, val explainer: Explainer? = null)

CMatterPredicate context

Functions

Link copied to clipboard

Combines this predicate with predicates using logical AND.

Link copied to clipboard

Combines this predicate with other using logical AND.

Link copied to clipboard
open fun name(): String

Returns a label identifying this predicate in diagnostic logs.

Link copied to clipboard

Combines this predicate with predicates and passes when at least n of them pass.

Link copied to clipboard

Combines this predicate with other using logical OR.

Link copied to clipboard

Runs this operation. If Context.asyncContext is non-null, periodically check AsyncContext.isInterrupted and return early when true to support cooperative cancellation.