CRecipe

interface CRecipe

This interface's implementing types can be used as recipes for CustomCrafter.

Parameters

name

Name of this recipe

items

Mapping of CMatter and those coordinates on crafting slots

results

List of ResultSupplier what provide items to players

type

Type of this recipe. See CRecipe.Type

See also

Inheritors

Types

Link copied to clipboard

Type of CRecipe

Properties

Link copied to clipboard
Link copied to clipboard
abstract val name: String
Link copied to clipboard
Link copied to clipboard
abstract val results: List<ResultSupplier>?
Link copied to clipboard
abstract val type: CRecipe.Type

Functions

Link copied to clipboard

Returns CRecipePredicate inspection result on async.

Link copied to clipboard
Link copied to clipboard
open fun getRecipePredicateResults(context: CRecipePredicate.Context, whenEmptyDefault: Boolean = true): Boolean

Returns CRecipePredicate inspection result

Link copied to clipboard
open fun getResults(context: ResultSupplier.Context): List<ItemStack>

Returns results of suppliers made

Link copied to clipboard
open fun getTimes(map: Map<CoordinateComponent, ItemStack>, relation: MappedRelation, shift: Boolean, withoutMass: Boolean = true): Int

Returns min amount

Link copied to clipboard

Returns this CRecipe is a valid or not.

Link copied to clipboard

Maximum requires input items amount. Inclusive

Link copied to clipboard

Minimal requires input items amount