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 isAsync: Boolean = false)

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

isAsync

Called from async or not (since 5.0.17)

See also

Constructors

Link copied to clipboard
constructor(coordinate: CoordinateComponent, matter: CMatter, input: ItemStack, mapped: Map<CoordinateComponent, ItemStack>, recipe: CRecipe, crafterID: UUID, isAsync: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val input: ItemStack
Link copied to clipboard
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, isAsync: Boolean = false): CMatterPredicate.Context

Copy with given parameters