InfusionStackIngredient

Link to infusionstackingredient

This class was added by a mod with mod-id mekanism. So you need to have this mod installed if you want to use this feature.

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import mods.mekanism.api.ingredient.ChemicalStackIngredient.InfusionStackIngredient;

Implemented Interfaces

Link to implemented-interfaces

InfusionStackIngredient implements the following interfaces. That means all methods defined in these interfaces are also available in InfusionStackIngredient

Name: createMulti

Combines multiple InfusionStackIngredient s into a single InfusionStackIngredient .

Returns: A single InfusionStackIngredient representing all the passed in ingredients.
Return Type: InfusionStackIngredient

ZenScript
Copy
InfusionStackIngredient.createMulti(ingredients as InfusionStackIngredient[]) as InfusionStackIngredient
ParameterTypeDescription
Parameter
ingredients
Type
InfusionStackIngredient[]
Description
Ingredients to combine

Name: from

Creates a InfusionStackIngredient that matches a given infuse type tag with amount.

Returns: A InfusionStackIngredient that matches a given infuse type tag with amount.
Return Type: InfusionStackIngredient

ZenScript
Copy
InfusionStackIngredient.from(infuseTypeTag as MCTagWithAmount<InfuseType>) as InfusionStackIngredient
ParameterTypeDescription
Parameter
infuseTypeTag
Type
MCTagWithAmount<InfuseType>
Description
Tag and amount to match

Name: from

Creates a InfusionStackIngredient that matches a given infusion stack.

Returns: A InfusionStackIngredient that matches a given infusion stack.
Return Type: InfusionStackIngredient

ZenScript
Copy
InfusionStackIngredient.from(instance as InfusionStack) as InfusionStackIngredient
ParameterTypeDescription
Parameter
instance
Type
InfusionStack
Description
Infusion stack to match

Name: from

Creates a InfusionStackIngredient that matches a given infuse type tag with a given amount.

Returns: A InfusionStackIngredient that matches a given infuse type tag with a given amount.
Return Type: InfusionStackIngredient

ZenScript
Copy
InfusionStackIngredient.from(infuseTypeTag as MCTag<InfuseType>, amount as long) as InfusionStackIngredient
ParameterTypeDescription
Parameter
infuseTypeTag
Type
MCTag<InfuseType>
Description
Tag to match
Parameter
amount
Type
long
Description
Amount needed

Name: from

Creates a InfusionStackIngredient that matches a given infuse type and amount.

Returns: A InfusionStackIngredient that matches a given infuse type and amount.
Return Type: InfusionStackIngredient

ZenScript
Copy
InfusionStackIngredient.from(instance as InfuseType, amount as long) as InfusionStackIngredient
ParameterTypeDescription
Parameter
instance
Type
InfuseType
Description
Infuse type to match
Parameter
amount
Type
long
Description
Amount needed
Result typeIs Implicit
Result type
IData
Is Implicit
true

Name: asIData

Converts this InfusionStackIngredient into JSON (IData).

Returns: InfusionStackIngredient as JSON.
Return Type: IData

ZenScript
Copy
// InfusionStackIngredient.asIData() as IData

myInfusionStackIngredient.asIData();

Name: or

OR's this InfusionStackIngredient with another InfusionStackIngredient to create a multi InfusionStackIngredient

Returns: Multi InfusionStackIngredient that matches both the source InfusionStackIngredient and the OR'd InfusionStackIngredient .
Return Type: InfusionStackIngredient

ZenScript
Copy
InfusionStackIngredient.or(other as InfusionStackIngredient) as InfusionStackIngredient
ParameterTypeDescription
Parameter
other
Type
InfusionStackIngredient
Description
InfusionStackIngredient to combine with.

Name: OR

Returns a new InfusionStackIngredient using the two InfusionStackIngredient as a base.

ZenScript
Copy
(ing1 as InfusionStackIngredient) | (ing2 as InfusionStackIngredient);