![]() |
tModLoader v2025.01
A mod to make and play Terraria mods
|
This serves as the central class which loads mods. It contains many static fields and methods related to mods and their contents. More...
Static Public Member Functions | |
static Mod | GetMod (string name) |
Gets the instance of the Mod with the specified name. This will throw an exception if the mod cannot be found so it should only be used for mods known to be enabled, such as a strong mod dependency. Use TryGetMod(string, out Mod) instead if the mod might not be enabled. More... | |
static bool | HasMod (string name) |
Safely checks whether or not a mod with the specified internal name is currently loaded. More... | |
static bool | IsSignedBy (TmodFile mod, string xmlPublicKey) |
static bool | TryGetMod (string name, out Mod result) |
Safely attempts to get the instance of the Mod with the specified name. More... | |
Properties | |
static string | CompressedPlatformRepresentation [get] |
static string | ModPath [get] |
static Mod[] | Mods = new Mod[0] [get] |
static string | versionedName [get] |
This serves as the central class which loads mods. It contains many static fields and methods related to mods and their contents.
|
static |
Gets the instance of the Mod with the specified name. This will throw an exception if the mod cannot be found so it should only be used for mods known to be enabled, such as a strong mod dependency. Use TryGetMod(string, out Mod) instead if the mod might not be enabled.
KeyNotFoundException |
|
static |
Safely checks whether or not a mod with the specified internal name is currently loaded.