PigmentStackIngredient
Link to pigmentstackingredient
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.PigmentStackIngredient;
Implemented Interfaces
Link to implemented-interfaces
PigmentStackIngredient implements the following interfaces. That means all methods defined in these interfaces are also available in PigmentStackIngredient
Static Methods
Link to static-methods
Name: createMulti
Combines multiple PigmentStackIngredient s into a single PigmentStackIngredient .
Returns: A
single PigmentStackIngredient
representing all the passed in ingredients.
Return
Type: PigmentStackIngredient
ZenScript CopyPigmentStackIngredient.createMulti(ingredients as PigmentStackIngredient[]) as PigmentStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter ingredients | Type PigmentStackIngredient[] | Description Ingredients to combine |
Name: from
Creates a PigmentStackIngredient that matches a given pigment stack.
Returns:
A PigmentStackIngredient
that matches a given pigment stack.
Return
Type: PigmentStackIngredient
ZenScript CopyPigmentStackIngredient.from(instance as PigmentStack) as PigmentStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter instance | Type PigmentStack | Description Pigment stack to match |
Name: from
Creates a PigmentStackIngredient that matches a given pigment tag with amount.
Returns:
A PigmentStackIngredient
that matches a given pigment tag with amount.
Return
Type: PigmentStackIngredient
ZenScript CopyPigmentStackIngredient.from(pigmentTag as MCTagWithAmount<Pigment>) as PigmentStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter pigmentTag | Type MCTagWithAmount<Pigment> | Description Tag and amount to match |
Name: from
Creates a PigmentStackIngredient that matches a given pigment and amount.
Returns:
A PigmentStackIngredient
that matches a given pigment and amount.
Return
Type: PigmentStackIngredient
ZenScript CopyPigmentStackIngredient.from(instance as Pigment, amount as long) as PigmentStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter instance | Type Pigment | Description Pigment to match |
Parameter amount | Type long | Description Amount needed |
Name: from
Creates a PigmentStackIngredient that matches a given pigment tag with a given amount.
Returns:
A PigmentStackIngredient
that matches a given pigment tag with a given amount.
Return
Type: PigmentStackIngredient
ZenScript CopyPigmentStackIngredient.from(pigmentTag as MCTag<Pigment>, amount as long) as PigmentStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter pigmentTag | Type MCTag<Pigment> | 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 PigmentStackIngredient into JSON (IData).
Returns: PigmentStackIngredient
as JSON.
Return Type: IData
ZenScript Copy// PigmentStackIngredient.asIData() as IData
myPigmentStackIngredient.asIData();
Name: or
OR's this PigmentStackIngredient with another PigmentStackIngredient to create a multi PigmentStackIngredient
Returns:
Multi PigmentStackIngredient
that matches both the
source PigmentStackIngredient
and the
OR'd PigmentStackIngredient
.
Return
Type: PigmentStackIngredient
ZenScript CopyPigmentStackIngredient.or(other as PigmentStackIngredient) as PigmentStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter other | Type PigmentStackIngredient | Description PigmentStackIngredient 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);