Skip to content

FabricCustomIngredient

class FabricCustomIngredient<T : IACustomIngredient>(val custom: T) : CustomIngredient, IACustomIngredientHolder<T> 

Constructors

FabricCustomIngredient

constructor(custom: T)

Properties

custom

open override val custom: T

matchingStacks

open override val matchingStacks: MutableList<ItemStack>

serializer

open override val serializer: CustomIngredientSerializer<*>

Functions

getMatchingStacks

open override fun getMatchingStacks(): MutableList<ItemStack>

getSerializer

open override fun getSerializer(): CustomIngredientSerializer<*>

requiresTesting

open override fun requiresTesting(): Boolean

test

open override fun test(stack: ItemStack): Boolean

toVanilla

@ApiStatus.NonExtendable



open fun toVanilla(): Ingredient?