CRecipeImpl

open class CRecipeImpl @JvmOverloads constructor(val name: String, val items: Map<CoordinateComponent, CMatter>, val type: CRecipe.Type, val predicates: List<CRecipePredicate>? = null, val results: List<ResultSupplier>? = null) : CRecipe

A default CRecipe implementation class.

Parameters

name

A name of this recipe.

items

Elements of this recipe.

type

A type of this recipe. (Shaped or Shapeless)

results

A ResultSupplier list. (default = null)

Constructors

Link copied to clipboard
constructor(name: String, items: Map<CoordinateComponent, CMatter>, type: CRecipe.Type, predicates: List<CRecipePredicate>? = null, results: List<ResultSupplier>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val items: Map<CoordinateComponent, CMatter>
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val predicates: List<CRecipePredicate>?
Link copied to clipboard
open override val results: List<ResultSupplier>?
Link copied to clipboard
open override 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