MechanicalCrafterManager
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.
import mods.create.MechanicalCrafterManager;
Implemented Interfaces
MechanicalCrafterManager implements the following interfaces. That means all methods defined in these interfaces are also available in MechanicalCrafterManager
Methods
Return Type: void
MechanicalCrafterManager.addJsonRecipe(name as string, mapData as MapData) as void
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description No Description Provided |
Parameter mapData | Type MapData | Description No Description Provided |
Adds a mirrored recipe to the Mechanical Crafter.
Return Type: void
// MechanicalCrafterManager.addMirroredRecipe(name as string, output as IItemStack, ingredients as IIngredient[][]) as void
<recipetype:create:mechanical_crafting>.addMirroredRecipe("mirrorized", <item:minecraft:glass>, [[<item:minecraft:diamond>, <item:minecraft:air>, <item:minecraft:diamond>], [<item:minecraft:air>, <item:minecraft:diamond>, <item:minecraft:air>]]);
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description The name of the recipe. |
Parameter output | Type IItemStack | Description The output of the recipe. |
Parameter ingredients | Type IIngredient[][] | Description The ingredients of the recipe. |
Adds a recipe to the Mechanical Crafter.
Return Type: void
// MechanicalCrafterManager.addRecipe(name as string, output as IItemStack, ingredients as IIngredient[][]) as void
<recipetype:create:mechanical_crafting>.addRecipe("mechanized", <item:minecraft:diamond>, [[<item:minecraft:dirt>, <item:minecraft:air>, <item:minecraft:dirt>], [<item:minecraft:air>, <item:minecraft:dirt>, <item:minecraft:air>]]);
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description The name of the recipe. |
Parameter output | Type IItemStack | Description The output of the recipe. |
Parameter ingredients | Type IIngredient[][] | Description The ingredients of the recipe. |
Return Type: stdlib.List<T>
// MechanicalCrafterManager.getAllRecipes() as stdlib.List<T>
<recipetype:create:mechanical_crafting>.getAllRecipes();
Return Type: T
MechanicalCrafterManager.getRecipeByName(name as string) as T
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description No Description Provided |
Return Type: T[ResourceLocation]
// MechanicalCrafterManager.getRecipeMap() as T[ResourceLocation]
<recipetype:create:mechanical_crafting>.getRecipeMap();
Return Type: stdlib.List<T>
MechanicalCrafterManager.getRecipesByOutput(output as IIngredient) as stdlib.List<T>
Parameter | Type | Description |
---|---|---|
Parameter output | Type IIngredient | Description No Description Provided |
Return Type: void
MechanicalCrafterManager.remove(output as IIngredient) as void
Parameter | Type | Description |
---|---|---|
Parameter output | Type IIngredient | Description No Description Provided |
Return Type: void
// MechanicalCrafterManager.removeAll() as void
<recipetype:create:mechanical_crafting>.removeAll();
Return Type: void
MechanicalCrafterManager.removeByInput(input as IItemStack) as void
Parameter | Type | Description |
---|---|---|
Parameter input | Type IItemStack | Description No Description Provided |
Return Type: void
MechanicalCrafterManager.removeByModid(modid as string, exclude as Predicate<string>) as void
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter modid | Type string | Description No Description Provided | Optional false | DefaultValue |
Parameter exclude | Type Predicate<string> | Description No Description Provided | Optional true | DefaultValue (name as string) as bool => false |
Return Type: void
MechanicalCrafterManager.removeByName(names as string[]) as void
Parameter | Type | Description |
---|---|---|
Parameter names | Type string[] | Description No Description Provided |
Return Type: void
MechanicalCrafterManager.removeByRegex(regex as string, exclude as Predicate<string>) as void
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter regex | Type string | Description No Description Provided | Optional false | DefaultValue |
Parameter exclude | Type Predicate<string> | Description No Description Provided | Optional true | DefaultValue (name as string) as bool => false |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name allRecipes | Type stdlib.List<T> | Has Getter true | Has Setter false | Description No Description Provided |
Name recipeMap | Type T[ResourceLocation] | Has Getter true | Has Setter false | Description No Description Provided |