Ingredient Bindings
Bindings for creating TFC’s ingredient types
declare class IngredientBindings {
// These are available via TFC.ingredient.*
blockIngredient(blocks: List<Block>): BlockIngredient
tagBlockIngredient(tag: TagKey<Block>): BlockIngredient
notRotten(): Ingredient
rotten(): Ingredient
hasTrait(trait: Holder<FoodTrait>): Ingredient
lacksTrait(trait: Holder<FoodTrait>): Ingredient
heat(min: number, max?: number): Ingredient
fluidContents(ingredient: SizedFluidIngredient): Ingredient
fluidContents(fluid: Fluid, amount: int): Ingredient
and(ingredients...: Ingredient[]): Ingredient
}
: Creates a block ingredient that matches the given blocks.blockIngredient(blocks: List<Block>)
: Creates a block ingredient that matches the given tag.tagBlockIngredient(tag: TagKey<Block>)
: Creates a.notRotten()tfc:not_rotteningredient
: Creates a.rotten()tfc:rotteningredient
: Creates a.hasTrait(trait: Holder<FoodTrait>)tfc:has_traitingredient that accepts any stack with the given trait
: Creates a.lacksTrait(trait: Holder<FoodTrait>)tfc:lacks_traitingredient that denies any stacks with the given trait
: Creates a.heat(min: number, max?: number)tfc:heatingredient, matching items with temperatures in the range[min,Infinity)or[min,max]
: Creates a.fluidContents(ingredient: SizedFluidIngredient)tfc:fluid_contentsingredient with the contents filter being the given fluid ingredient
: Creates a.fluidContents(fluid: Fluid, amount: int)tfc:fluid_contentsingredient that only matches the givenfluidwith the givenamount
: Creates a.and(ingredients...: Ingredient[])tfc:andingredient, a variation on NeoForge’s intersection ingredient which properly displays TFC ingredient types in recipe viewers