Skip to content

commonnet.kernelpanicsoft.archie.data.common.crafting.ingredientsACombinedIngredient

ACombinedIngredient


Base class for ALL and ANY ingredients.

Inheritors

Types

Serializer


class Serializer<I : ACombinedIngredient>(val identifier: ResourceLocation, factory: Function<List<Ingredient>, I>, allowEmptyCodec: MapCodec<I>, disallowEmptyCodec: MapCodec<I>) : IACustomIngredientSerializer<I> 

Properties

ingredients


val ingredients: List<Ingredient>

matchingStacks


abstract val matchingStacks: MutableList<ItemStack>

requiresTesting


open override 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.