CraftingTableRecipeManager
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.
Description
Implements
CraftingTableRecipeManager
implements the following interfaces:
IRecipeManager<CraftingRecipe>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<RecipeHolder<Recipe>>
Members
Parameters:
recipeName: string
Type: string
output: IItemStack
Type: IItemStack
ingredients: IIngredient[][]
Type: IIngredient[][]
This method lets you provide a
MirrorAxis
, which can be used to set which axis the recipe is mirrored on. Use cases are making a recipe only be mirrored vertically or only horizontally. Parameters:
recipeName: string
Type: string
- name of the recipe to add. recipeFunction: RecipeFunction2D
(optional) Type: RecipeFunction2D
- optional RecipeFunction2D
for more advanced conditions
Default Value: null
Parameters:
recipeName: string
Type: string
output: IItemStack
Type: IItemStack
pattern: string[]
Type: string[]
keys: IIngredient[string]
Type: IIngredient[string]
Parameters:
recipeName: string
Type: string
output: IItemStack
Type: IItemStack
ingredients: IIngredient[]
Type: IIngredient[]
Return Type:
List<RecipeHolder<Recipe>>
Return Type:
List<RecipeHolder<Recipe>>
Return Type:
string
Return Type:
string
Parameters:
name: string
Type: string
Return Type:
RecipeHolder<Recipe>
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<RecipeHolder<Recipe>>
Parameters:
predicate: function(t as RecipeHolder<Recipe>) as bool
Type: function(t as RecipeHolder<Recipe>) as bool
Return Type:
List<RecipeHolder<Recipe>>
Return Type:
RecipeHolder<Recipe>[ResourceLocation]
Returns: A Map of recipe name to recipe of all known recipes.
Return Type:
RecipeHolder<Recipe>[ResourceLocation]
Parameters:
Parameters:
Parameters:
modid: string
Type: string
- modid of the recipes to remove exclude: function(t as string) as bool
(optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false
Parameters:
names: string[]
Type: string[]
- registry names of recipes to remove Parameters:
regex: string
Type: string
- regex to match against exclude: function(t as string) as bool
(optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false
Parameters:
predicate: function(t as RecipeHolder<Recipe>) as bool
Type: function(t as RecipeHolder<Recipe>) as bool
- a predicate of RecipeHolder<T> to test recipes against.