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

◆ GetMod()

static Mod Terraria.ModLoader.ModLoader.GetMod ( string name)
inlinestatic

Gets the instance of the Mod with the specified name. This will throw an exception if the mod cannot be found.

Exceptions
T:System.Collections.Generic.KeyNotFoundException

Definition at line 107 of file ModLoader.cs.

108 {
109 return modsByName[name];
110 }
static readonly IDictionary< string, Mod > modsByName
Definition ModLoader.cs:51

References Terraria.ModLoader.ModLoader.modsByName.

Referenced by Terraria.ModLoader.Config.ConfigManager.GetConfig(), Terraria.ModLoader.Core.AssemblyManager.GetDependencies(), Terraria.ModLoader.Config.ConfigManager.HandleInGameChangeConfigPacket(), Terraria.ModLoader.UI.UIModItem.OpenConfig(), Terraria.ModLoader.ModContent.OpenRead(), Terraria.ModLoader.UI.UIMemoryBar.RecalculateMemory(), and Terraria.ModLoader.ModNet.SendMod().

+ Here is the caller graph for this function: