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
crafter ID
Crafter UUID
async Context
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)
Functions
Link copied to clipboard
fun copyWith(matter: CMatter = this.matter, asyncContext: AsyncContext? = null): CMatterPredicate.Context
Copy with given parameters
Link copied to clipboard
If no async context exists, returns a newly added one.