SlurryStackIngredient
Link to slurrystackingredient
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.SlurryStackIngredient;
Implemented Interfaces
Link to implemented-interfaces
SlurryStackIngredient implements the following interfaces. That means all methods defined in these interfaces are also available in SlurryStackIngredient
Static Methods
Link to static-methods
Name: createMulti
Combines multiple SlurryStackIngredient s into a single SlurryStackIngredient .
Returns: A
single SlurryStackIngredient
representing all the passed in ingredients.
Return
Type: SlurryStackIngredient
ZenScript CopySlurryStackIngredient.createMulti(ingredients as SlurryStackIngredient[]) as SlurryStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter ingredients | Type SlurryStackIngredient[] | Description Ingredients to combine |
Name: from
Creates a SlurryStackIngredient that matches a given slurry stack.
Returns:
A SlurryStackIngredient
that matches a given slurry stack.
Return
Type: SlurryStackIngredient
ZenScript CopySlurryStackIngredient.from(instance as SlurryStack) as SlurryStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter instance | Type SlurryStack | Description Slurry stack to match |
Name: from
Creates a SlurryStackIngredient that matches a given slurry tag with amount.
Returns:
A SlurryStackIngredient
that matches a given slurry tag with amount.
Return
Type: SlurryStackIngredient
ZenScript CopySlurryStackIngredient.from(slurryTag as MCTagWithAmount<Slurry>) as SlurryStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter slurryTag | Type MCTagWithAmount<Slurry> | Description Tag and amount to match |
Name: from
Creates a SlurryStackIngredient that matches a given slurry and amount.
Returns:
A SlurryStackIngredient
that matches a given slurry and amount.
Return
Type: SlurryStackIngredient
ZenScript CopySlurryStackIngredient.from(instance as Slurry, amount as long) as SlurryStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter instance | Type Slurry | Description Slurry to match |
Parameter amount | Type long | Description Amount needed |
Name: from
Creates a SlurryStackIngredient that matches a given slurry tag with a given amount.
Returns:
A SlurryStackIngredient
that matches a given slurry tag with a given amount.
Return
Type: SlurryStackIngredient
ZenScript CopySlurryStackIngredient.from(slurryTag as MCTag<Slurry>, amount as long) as SlurryStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter slurryTag | Type MCTag<Slurry> | Description Tag 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 SlurryStackIngredient into JSON (IData).
Returns: SlurryStackIngredient
as JSON.
Return Type: IData
ZenScript Copy// SlurryStackIngredient.asIData() as IData
mySlurryStackIngredient.asIData();
Name: or
OR's this SlurryStackIngredient with another SlurryStackIngredient to create a multi SlurryStackIngredient
Returns:
Multi SlurryStackIngredient
that matches both the
source SlurryStackIngredient
and the
OR'd SlurryStackIngredient
.
Return
Type: SlurryStackIngredient
ZenScript CopySlurryStackIngredient.or(other as SlurryStackIngredient) as SlurryStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter other | Type SlurryStackIngredient | Description SlurryStackIngredient to combine with. |
Operators
Link to operators
Name: OR
Returns a new GasStackIngredient using the two GasStackIngredient as a base.
ZenScript Copy(ing1 as GasStackIngredient) | (ing2 as GasStackIngredient);