net.kernelpanicsoft.archie.data.common.crafting.ingredients¶
Types¶
AAllIngredient¶
class AAllIngredient : ACombinedIngredient
Custom ingredient that matches a stack only when every one of its sub-ingredients matches it. Build via of.
AAnyIngredient¶
class AAnyIngredient : ACombinedIngredient
Custom ingredient that matches a stack when at least one of its sub-ingredients matches it. Build via of.
ABuiltinIngredients¶
object ABuiltinIngredients
Registers Archie's built-in IACustomIngredient serializers (AAllIngredient, AAnyIngredient, AComponentsIngredient, ACustomDataIngredient).
ACombinedIngredient¶
abstract class ACombinedIngredient : IACustomIngredient
Base class for IACustomIngredients that combine multiple sub-ingredients, e.g. AAllIngredient (matches when every sub-ingredient matches) and AAnyIngredient (matches when any does).
AComponentsIngredient¶
Custom ingredient that matches stacks accepted by base and additionally requires their data components to match components (present components must equal the patch's value; absent components must stay absent). Build via of.
ACustomDataIngredient¶
Custom ingredient that matches stacks accepted by base whose minecraft:custom_data component NBT is matched by nbt (a partial/sub-tag match, not exact equality). Build via of.
IACustomIngredient¶
interface IACustomIngredient
Interface that modders can implement to create new recipe-matching behaviors beyond vanilla Ingredients, ported from Fabric's custom ingredient API to work cross-loader.
IACustomIngredientHolder¶
interface IACustomIngredientHolder<T : IACustomIngredient>
Implemented by the vanilla Ingredient produced from IACustomIngredient.vanilla, exposing the wrapped custom ingredient so it can be recovered from a vanilla Ingredient reference.
IACustomIngredientSerializer¶
interface IACustomIngredientSerializer<T : IACustomIngredient>
Serializer for an IACustomIngredient of type T.