CRecipe Impl
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)
Properties
Functions
Link copied to clipboard
open fun asyncGetRecipePredicateResults(context: CRecipePredicate.Context, whenEmptyDefault: Boolean = true): CompletableFuture<Boolean>
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
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