CVanillaRecipe

A CRecipe wrapper for vanilla Recipe instances. For internal use only; instantiation is restricted to internal code.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val items: Map<CoordinateComponent, CMatter>

Mapping of CMatter to their coordinates on the crafting slots.

Link copied to clipboard
open override val name: String

Name of this recipe.

Link copied to clipboard
Link copied to clipboard
open override val predicates: List<CRecipePredicate>?

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

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

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

Link copied to clipboard
open override 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

Builds a MappedRelation by matching this recipe's slots against the given view in index order.

Link copied to clipboard

Maximum requires input items amount. Inclusive

Link copied to clipboard

Minimal requires input items amount