Allows you to add or remove Bottling Machine recipes.

Bottling Machine recipes consist of an item ingredient, a fluid input and an item output.

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.immersiveengineering.BottlingMachine;

Implemented Interfaces

Link to implemented-interfaces

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

Name: addJsonRecipe

ZenScript
Copy
BottlingMachine.addJsonRecipe(name as string, mapData as MapData)
ParameterType
Parameter
name
Type
string
Parameter
mapData
Type
MapData

Name: addRecipe

Adds a recipe to the Bottling Machine. The bottling Machine only goes via Fluid tag!

ZenScript
Copy
BottlingMachine.addRecipe(recipePath as string, inputs as IIngredientWithAmount[], fluidTag as Many<MCTag>, outputs as IItemStack[])
ParameterTypeDescription
Parameter
recipePath
Type
string
Description
The recipe name, without the resource location
Parameter
inputs
Type
IIngredientWithAmount[]
Description
The item input (the items to be filled)
Parameter
fluidTag
Type
Many<MCTag>
Description
The fluid tag of the fluid
Parameter
outputs
Type
IItemStack[]
Description
The resulting "filled" items.

Name: getAllRecipes

Return Type: stdlib.List<T>

ZenScript
Copy
// BottlingMachine.getAllRecipes() as stdlib.List<T>

<recipetype:immersiveengineering:bottling_machine>.getAllRecipes();

Name: getRecipeByName

Return Type: T

ZenScript
Copy
BottlingMachine.getRecipeByName(name as string) as T
ParameterType
Parameter
name
Type
string

Name: getRecipeMap

Return Type: T[ResourceLocation]

ZenScript
Copy
// BottlingMachine.getRecipeMap() as T[ResourceLocation]

<recipetype:immersiveengineering:bottling_machine>.getRecipeMap();

Link to getRecipesByOutput

Name: getRecipesByOutput

Return Type: stdlib.List<T>

ZenScript
Copy
BottlingMachine.getRecipesByOutput(output as IIngredient) as stdlib.List<T>
ParameterType
Parameter
output
Type
IIngredient

Name: remove

ZenScript
Copy
BottlingMachine.remove(output as IIngredient)
ParameterType
Parameter
output
Type
IIngredient

Name: removeAll

ZenScript
Copy
// BottlingMachine.removeAll()

<recipetype:immersiveengineering:bottling_machine>.removeAll();

Name: removeByInput

ZenScript
Copy
BottlingMachine.removeByInput(input as IItemStack)
ParameterType
Parameter
input
Type
IItemStack

Name: removeByModid

ZenScript
Copy
BottlingMachine.removeByModid(modid as string, exclude as Predicate<string>)
ParameterTypeOptionalDefault Value
Parameter
modid
Type
string
Optional
false
Default Value
Parameter
exclude
Type
Predicate<string>
Optional
true
Default Value
(name as string) as bool => false

Name: removeByName

ZenScript
Copy
BottlingMachine.removeByName(names as string[])
ParameterType
Parameter
names
Type
string[]

Name: removeByRegex

ZenScript
Copy
BottlingMachine.removeByRegex(regex as string, exclude as Predicate<string>)
ParameterTypeOptionalDefault Value
Parameter
regex
Type
string
Optional
false
Default Value
Parameter
exclude
Type
Predicate<string>
Optional
true
Default Value
(name as string) as bool => false
이름TypeHas GetterHas Setter
이름
allRecipes
Type
stdlib.List<T>
Has Getter
true
Has Setter
false
이름
recipeMap
Type
T[ResourceLocation]
Has Getter
true
Has Setter
false