Context

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)

CMatterPredicate context

Parameters

coordinate

Inspection point on a recipe mapping

matter

Inspector

input

Inspection target

mapped

User input items mapping

recipe

A CRecipe what contains a CMatterPredicate who receives this

crafterId

Crafter UUID

asyncContext

Async context. When non-null, test implementations should periodically check AsyncContext.isInterrupted and return early if true.

See also

Constructors

Link copied to clipboard
constructor(coordinate: CoordinateComponent, matter: CMatter, input: ItemStack, mapped: Map<CoordinateComponent, ItemStack>, recipe: CRecipe, crafterId: UUID, asyncContext: AsyncContext? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyWith(matter: CMatter = this.matter, asyncContext: AsyncContext? = null): CMatterPredicate.Context

Copy with given parameters

Link copied to clipboard

Returns whether this inspection is async.

Link copied to clipboard

If no async context exists, returns a newly added one.