TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ SortAfterFirstRecipesOf()

Recipe Terraria.Recipe.SortAfterFirstRecipesOf ( int itemId)
inline

Sorts the recipe after the first one creating the item of the ID given as parameter.

Definition at line 16517 of file Recipe.cs.

16518 {
16520 if (target != null)
16521 {
16522 return SortAfter(target);
16523 }
16524 return this;
16525 }
This is where all Recipe hooks are gathered and called.
Recipe SortAfter(Recipe recipe)
Sorts the recipe after the one given as parameter. Both recipes must already be registered.
Definition Recipe.cs:16530
Recipe target
Definition Recipe.cs:123
static Recipe()
Definition Recipe.cs:130

References Terraria.ModLoader.RecipeLoader.FirstRecipeForItem, Terraria.Recipe.SortAfter(), and Terraria.Recipe.target.

+ Here is the call graph for this function: