Context

class Context @JvmOverloads constructor(val input: CraftView, val crafterID: UUID, val recipe: CRecipe, val relation: MappedRelation, val asyncContext: AsyncContext? = null)

Context for CRecipePredicate

Since

5.0.17

Parameters

input

Inspection target

crafterID

Crafter UUID

recipe

Recipe

relation

Pre-result of inspection

asyncContext

Async context (since 5.0.20)

Constructors

Link copied to clipboard
constructor(input: CraftView, crafterID: UUID, recipe: CRecipe, relation: MappedRelation, asyncContext: AsyncContext? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyWith(asyncContext: AsyncContext? = null): CRecipePredicate.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.