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

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

isAsync

Called from async or not (since 5.0.17)

Constructors

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

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