Package-level declarations

CRecipe and implementations

Types

Link copied to clipboard
class AdjacentRecipe @JvmOverloads constructor(val name: String, matters: List<CMatter>, val relationType: AdjacentRecipe.RelationType = RelationType.BOTH, customPredicates: List<CRecipePredicate>? = null, val results: List<ResultSupplier>? = null) : CRecipe

A semi-shaped recipe that sits between fully shaped and fully shapeless recipes.

Link copied to clipboard
data class CoordinateComponent(val x: Int, val y: Int)

A coordinate in Crafting slots.

Link copied to clipboard
interface CRecipe

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

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

Link copied to clipboard
fun interface CRecipePredicate

This interface is a SAM (Single Abstract Method Interface) and only has the function (CRecipePredicate.test) that is executed during recipe determination.

Link copied to clipboard

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

Link copied to clipboard
open class GroupRecipe @JvmOverloads constructor(val name: String, val items: Map<CoordinateComponent, CMatter>, val groups: Set<GroupRecipe.Context>, predicates: List<CRecipePredicate>? = null, val results: List<ResultSupplier>? = null) : CRecipe, UnPartialSearchableRecipe

Implementation of CRecipe.

Link copied to clipboard

This marker interface indicates that the class is not intended for the partial search feature.