MechanicalCrafterManager
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import mods.create.MechanicalCrafterManager;
Description
Implements
MechanicalCrafterManager
implements the following interfaces:
IRecipeManager<MechanicalCraftingRecipe>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<Recipe>
Members
addMirroredRecipe(name as string, output as IItemStack, ingredients as IIngredient[][])
Adds a mirrored recipe to the Mechanical Crafter.script.zs
// MechanicalCrafterManager.addMirroredRecipe(name as string, output as IItemStack, ingredients as IIngredient[][]);<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>]]);
Parameters:
name: string
Type: string
- The name of the recipe. addRecipe(name as string, output as IItemStack, ingredients as IIngredient[][])
Adds a recipe to the Mechanical Crafter.script.zs
// MechanicalCrafterManager.addRecipe(name as string, output as IItemStack, ingredients as IIngredient[][]);<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>]]);
Parameters:
name: string
Type: string
- The name of the recipe. Getter
allRecipes() as List<Recipe>
Getter
// MechanicalCrafterManager.commandString as string<recipetype:create:mechanical_crafting>.commandString
Return Type:
string
commandString() as string
// MechanicalCrafterManager.commandString() as string;<recipetype:create:mechanical_crafting>.commandString();
Return Type:
string
getRecipesByOutput(output as IIngredient) as List<Recipe>
<recipetype:create:mechanical_crafting>.getRecipesByOutput(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<Recipe>
Getter
<recipetype:create:mechanical_crafting>.recipeMap
Return Type:
Recipe[ResourceLocation]
recipeMap() as Recipe[ResourceLocation]
remove(output as IIngredient)
<recipetype:create:mechanical_crafting>.remove(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
removeAll()
// MechanicalCrafterManager.removeAll();<recipetype:create:mechanical_crafting>.removeAll();
removeByInput(input as IItemStack)
<recipetype:create:mechanical_crafting>.removeByInput(myIItemStack);
Parameters:
input: IItemStack
Type: IItemStack
removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false)
// MechanicalCrafterManager.removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:create:mechanical_crafting>.removeByModid(myString, myPredicate);
Parameters:
modid: string
Type: string
exclude: function(t as string) as bool
(optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false
removeByName(names as string[])
// MechanicalCrafterManager.removeByName(names as string[]);<recipetype:create:mechanical_crafting>.removeByName(myString[]);
Parameters:
names: string[]
Type: string[]
removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false)
// MechanicalCrafterManager.removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:create:mechanical_crafting>.removeByRegex(myString, myPredicate);
Parameters:
regex: string
Type: string
exclude: function(t as string) as bool
(optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false