Context

class Context @JvmOverloads constructor(val recipe: CRecipe, val relation: MappedRelation, val mapped: Map<CoordinateComponent, ItemStack>, val shiftClicked: Boolean, val calledTimes: Int, val crafterID: UUID, val isMultipleDisplayCall: Boolean, val asyncContext: AsyncContext? = null)

This class contains ResultSupplier parameters.

Parameters

recipe

A CRecipe instance what contains this

crafterID

Crafter UUID

relation

Coordinate mapping between a CRecipe and an input Inventory

mapped

Coordinates and input items mapping

shiftClicked

Shift-clicked or not

calledTimes

Calculated minimum amount with CMatter.amount

isMultipleDisplayCall

invoke called from multiple result display item collector or not

asyncContext

Async context (since 5.0.20)

Constructors

Link copied to clipboard
constructor(recipe: CRecipe, relation: MappedRelation, mapped: Map<CoordinateComponent, ItemStack>, shiftClicked: Boolean, calledTimes: Int, crafterID: UUID, isMultipleDisplayCall: Boolean, asyncContext: AsyncContext? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val mapped: Map<CoordinateComponent, ItemStack>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyWith(asyncContext: AsyncContext? = null): ResultSupplier.Context

Copy with a given parameter.

Link copied to clipboard

Returns whether this inspection is async.

Link copied to clipboard

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