tModLoader v2024.09
A mod to make and play Terraria mods
RecipeGroup Class Reference

Public Member Functions

 RecipeGroup (Func< string > getName, params int[] validItems)
 
bool ContainsItem (int type)
 
int CountUsableItems (Dictionary< int, int > itemStacksAvailable)
 
int GetGroupFakeItemId ()
 

Static Public Member Functions

static int RegisterGroup (string name, RecipeGroup rec)
 

Public Attributes

Func< string > GetText
 
int IconicItemId
 
int RegisteredId
 
HashSet< int > ValidItems
 

Static Public Attributes

static int nextRecipeGroupIndex
 
static Dictionary< string, int > recipeGroupIDs = new Dictionary<string, int>()
 
static Dictionary< int, RecipeGrouprecipeGroups = new Dictionary<int, RecipeGroup>()