SmokerRecipeManager
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
SmokerRecipeManager
implements the following interfaces:
ICookingRecipeManager<SmokingRecipe>
,IRecipeManager<AbstractCookingRecipe>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<RecipeHolderRecipeHolder<Recipe>>
Members
Note: A
cookTime
of 0
will cause the recipe to never complete, it will burn and use fuel, but no progress will be made on the recipe, it needs to be at-least 1
or more.Saying that, if you would like to make a recipe that will never complete (for example being able to give the player an infinitely burning furnace for whatever reason), you can still use a
cookTime
of 0
. Parameters:
name: string
Type: string
- Name of the new recipe xp: float
Type: float
- how much xp the player gets cookTime: int
Type: int
- how long it takes to cook Note: A
cookTime
of 0
will cause the recipe to never complete, it will burn and use fuel, but no progress will be made on the recipe, it needs to be at-least 1
or more.Saying that, if you would like to make a recipe that will never complete (for example being able to give the player an infinitely burning furnace for whatever reason), you can still use a
cookTime
of 0
. Parameters:
name: string
Type: string
- Name of the new recipe category: CookingBookCategory
Type: CookingBookCategory
- The category of the recipe in the recipe book xp: float
Type: float
- how much xp the player gets cookTime: int
Type: int
- how long it takes to cook
Return Type:
List<RecipeHolderRecipeHolder<Recipe>>
Return Type:
List<RecipeHolderRecipeHolder<Recipe>>
Return Type:
string
Return Type:
string
Parameters:
name: string
Type: string
Return Type:
RecipeHolderRecipeHolder<Recipe>
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<RecipeHolderRecipeHolder<Recipe>>
Parameters:
predicate: function(t as RecipeHolderRecipeHolder<Recipe>) as bool
Type: function(t as RecipeHolderRecipeHolder<Recipe>) as bool
Return Type:
List<RecipeHolderRecipeHolder<Recipe>>
Return Type:
RecipeHolderRecipeHolder<Recipe>[ResourceLocation]
Returns: A Map of recipe name to recipe of all known recipes.
Return Type:
RecipeHolderRecipeHolder<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 RecipeHolderRecipeHolder<Recipe>) as bool
Type: function(t as RecipeHolderRecipeHolder<Recipe>) as bool
- a predicate of RecipeHolder<T> to test recipes against. Parameters: