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.

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
val input: ItemStack
Link copied to clipboard
val mapped: Map<CoordinateComponent, ItemStack>
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.