FluidStackIngredient
Link to fluidstackingredient
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.FluidStackIngredient;
Static Methods
Link to static-methods
Name: createMulti
Combines multiple FluidStackIngredients into a single FluidStackIngredient.
Returns: A single FluidStackIngredient
representing all the passed in ingredients.
Return Type: FluidStackIngredient
ZenScript CopyFluidStackIngredient.createMulti(ingredients as FluidStackIngredient[]) as FluidStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter ingredients | Type FluidStackIngredient[] | Description Ingredients to combine |
Name: from
Creates a FluidStackIngredient that matches a given fluid tag with amount.
Returns: A FluidStackIngredient that matches a
given fluid tag with amount.
Return Type: FluidStackIngredient
ZenScript CopyFluidStackIngredient.from(fluidTag as MCTagWithAmount<MCFluid>) as FluidStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter fluidTag | Type MCTagWithAmount<MCFluid> | Description Tag and amount to match |
Name: from
Creates a FluidStackIngredient that matches a given fluid stack.
Returns: A FluidStackIngredient that matches a
given fluid stack.
Return Type: FluidStackIngredient
ZenScript CopyFluidStackIngredient.from(instance as IFluidStack) as FluidStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter instance | Type IFluidStack | Description Fluid stack to match |
Name: from
Creates a FluidStackIngredient that matches a given fluid and amount.
Returns: A FluidStackIngredient that matches a
given fluid and amount.
Return Type: FluidStackIngredient
ZenScript CopyFluidStackIngredient.from(fluid as MCFluid, amount as int) as FluidStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter fluid | Type MCFluid | Description Fluid to match |
Parameter amount | Type int | Description Amount needed |
Name: from
Creates a FluidStackIngredient that matches a given fluid tag with a given amount.
Returns: A FluidStackIngredient that matches a
given fluid tag with a given amount.
Return Type: FluidStackIngredient
ZenScript CopyFluidStackIngredient.from(fluidTag as MCTag<MCFluid>, amount as int) as FluidStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter fluidTag | Type MCTag<MCFluid> | Description Tag to match |
Parameter amount | Type int | 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 FluidStackIngredient into JSON (IData).
Returns: FluidStackIngredient as JSON.
Return Type: IData
ZenScript Copy// FluidStackIngredient.asIData() as IData
myFluidStackIngredient.asIData();
Name: or
OR's this FluidStackIngredient with another FluidStackIngredient to create a multi FluidStackIngredient
Returns: Multi FluidStackIngredient that
matches both the source FluidStackIngredient
and the OR'd FluidStackIngredient.
Return Type: FluidStackIngredient
ZenScript CopyFluidStackIngredient.or(other as FluidStackIngredient) as FluidStackIngredient
Parameter | Type | Description |
---|---|---|
Parameter other | Type FluidStackIngredient | Description FluidStackIngredient to combine with. |
Operators
Link to operators
Name: OR
Returns a new FluidStackIngredient using the two FluidStackIngredient as a base.
ZenScript Copy(ing1 as FluidStackIngredient) | (ing2 as FluidStackIngredient);