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 Copyimport 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
Static Methods
Link to static-methods
Name: createMulti
Combines multiple InfusionStackIngredient s into a single InfusionStackIngredient .
Returns: A
single InfusionStackIngredient
representing all the passed in ingredients.
Return
Type: InfusionStackIngredient
ZenScript CopyInfusionStackIngredient.createMulti(ingredients as InfusionStackIngredient[]) as InfusionStackIngredient
Parameter | Type | Description |
---|---|---|
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 CopyInfusionStackIngredient.from(infuseTypeTag as MCTagWithAmount<InfuseType>) as InfusionStackIngredient
Parameter | Type | Description |
---|---|---|
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 CopyInfusionStackIngredient.from(instance as InfusionStack) as InfusionStackIngredient
Parameter | Type | Description |
---|---|---|
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 CopyInfusionStackIngredient.from(infuseTypeTag as MCTag<InfuseType>, amount as long) as InfusionStackIngredient
Parameter | Type | Description |
---|---|---|
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 CopyInfusionStackIngredient.from(instance as InfuseType, amount as long) as InfusionStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter instance | Type InfuseType | Description Infuse type to match |
Parameter amount | Type long | Description Amount needed |
Casters
Link to casters
Result type | Is Implicit |
---|---|
Result type IData | Is Implicit true |
Methods
Link to methods
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 CopyInfusionStackIngredient.or(other as InfusionStackIngredient) as InfusionStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter other | Type InfusionStackIngredient | Description InfusionStackIngredient to combine with. |
Operators
Link to operators
Name: OR
Returns a new InfusionStackIngredient using the two InfusionStackIngredient as a base.
ZenScript Copy(ing1 as InfusionStackIngredient) | (ing2 as InfusionStackIngredient);