CRecipe

interface CRecipe

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

See also

Inheritors

Types

Link copied to clipboard

Type of CRecipe

Properties

Link copied to clipboard

Mapping of CMatter to their coordinates on the crafting slots.

Link copied to clipboard
abstract val name: String

Name of this recipe.

Link copied to clipboard

List of CRecipePredicate that run during recipe matching. null or empty means no additional conditions.

Link copied to clipboard
abstract val results: List<ResultSupplier>?

List of ResultSupplier that provide items to players. null or empty means no items are produced.

Link copied to clipboard
abstract val type: CRecipe.Type

Type of this recipe. See CRecipe.Type.

Functions

Link copied to clipboard

Returns CRecipePredicate inspection result on async.

Link copied to clipboard

Returns results of suppliers made asynchronously.

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

Returns CRecipePredicate inspection result

Link copied to clipboard

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 the minimum craft count calculated from input item amounts and recipe requirements.

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