Skip to content

commonnet.kernelpanicsoft.archie.data.common.crafting.ingredientsIACustomIngredient

IACustomIngredient


Interface that modders can implement to create new behaviors for Ingredients.

This is not directly implemented on vanilla Ingredients, but conversions are possible:

The format for custom ingredients is as follows:

`{
"fabric:type": "",
// extra ingredient data, dependent on the serializer
}
`

*#### See also

Inheritors

Properties

matchingStacks


abstract val matchingStacks: MutableList<ItemStack>

requiresTesting


abstract val requiresTesting: Boolean

Returns whether this ingredient always requires .test.

serializer


vanilla


@get:ApiStatus.NonExtendableopen val vanilla: Ingredient

Functions

test


abstract fun test(stack: ItemStack): Boolean

Checks if a stack matches this ingredient. The stack must not be modified in any way.