This is where all Recipe hooks are gathered and called.
More...
|
static void | ConsumeIngredient (Recipe recipe, int type, ref int amount, bool isDecrafting) |
| Allows to edit the amount of item the player uses in a recipe. Also used to decide the amount a shimmer transformation returns More...
|
|
static void | ConsumeItem (Recipe recipe, int type, ref int amount) |
| Allows to edit the amount of item the player uses in a recipe. Also used to decide the amount a shimmer transformation returns More...
|
|
static bool | DecraftAvailable (Recipe recipe) |
| Returns whether or not the conditions are met for this recipe to be shimmered/decrafted. More...
|
|
static void | OnCraft (Item item, Recipe recipe, Item destinationStack) |
| Helper version of OnCraft, used in combination with Recipe.Create and the internal ConsumedItems list More...
|
|
static void | OnCraft (Item item, Recipe recipe, List< Item > consumedItems, Item destinationStack) |
| recipe.OnCraftHooks followed by Calls ItemLoader.OnCreate with a RecipeItemCreationContext More...
|
|
static bool | RecipeAvailable (Recipe recipe) |
| Returns whether or not the conditions are met for this recipe to be available for the player to use. More...
|
|
This is where all Recipe hooks are gathered and called.
◆ ConsumeIngredient()
static void RecipeLoader.ConsumeIngredient |
( |
Recipe |
recipe, |
|
|
int |
type, |
|
|
ref int |
amount, |
|
|
bool |
isDecrafting |
|
) |
| |
|
static |
Allows to edit the amount of item the player uses in a recipe. Also used to decide the amount a shimmer transformation returns
- Parameters
-
recipe | The recipe used for the craft. |
type | Type of the ingredient. |
amount | Modifiable amount of the item consumed. |
isDecrafting | If the operation takes place during shimmer decrafting. |
◆ ConsumeItem()
static void RecipeLoader.ConsumeItem |
( |
Recipe |
recipe, |
|
|
int |
type, |
|
|
ref int |
amount |
|
) |
| |
|
static |
Allows to edit the amount of item the player uses in a recipe. Also used to decide the amount a shimmer transformation returns
- Parameters
-
recipe | The recipe used for the craft. |
type | Type of the ingredient. |
amount | Modifiable amount of the item consumed. |
◆ DecraftAvailable()
static bool RecipeLoader.DecraftAvailable |
( |
Recipe |
recipe | ) |
|
|
static |
Returns whether or not the conditions are met for this recipe to be shimmered/decrafted.
- Parameters
-
recipe | The recipe to check. |
- Returns
- Whether or not the conditions are met for this recipe.
◆ OnCraft() [1/2]
static void RecipeLoader.OnCraft |
( |
Item |
item, |
|
|
Recipe |
recipe, |
|
|
Item |
destinationStack |
|
) |
| |
|
static |
Helper version of OnCraft, used in combination with Recipe.Create and the internal ConsumedItems list
- Parameters
-
item | |
recipe | |
destinationStack | The stack that the crafted item will be combined with |
◆ OnCraft() [2/2]
static void RecipeLoader.OnCraft |
( |
Item |
item, |
|
|
Recipe |
recipe, |
|
|
List< Item > |
consumedItems, |
|
|
Item |
destinationStack |
|
) |
| |
|
static |
recipe.OnCraftHooks followed by Calls ItemLoader.OnCreate with a RecipeItemCreationContext
- Parameters
-
item | The item crafted. |
recipe | The recipe used to craft the item. |
consumedItems | Materials used to craft the item. |
destinationStack | The stack that the crafted item will be combined with |
◆ RecipeAvailable()
static bool RecipeLoader.RecipeAvailable |
( |
Recipe |
recipe | ) |
|
|
static |
Returns whether or not the conditions are met for this recipe to be available for the player to use.
- Parameters
-
recipe | The recipe to check. |
- Returns
- Whether or not the conditions are met for this recipe.