|
| static int | BuffType< T > () |
| | Get the id (type) of a ModBuff by class. Assumes one instance per class. More...
|
| |
| static int | DustType< T > () |
| | Get the id (type) of a ModDust by class. Assumes one instance per class. More...
|
| |
|
static bool | FileExists (string name) |
| | Returns whether or not a file with the specified name exists.
|
| |
| static T | Find< T > (string fullname) |
| | Attempts to find the content instance with the specified full name. Caching the result is recommended.This will throw exceptions on failure. More...
|
| |
| static T | Find< T > (string modName, string name) |
| | Attempts to find the content instance with the specified name and mod name. Caching the result is recommended.This will throw exceptions on failure. More...
|
| |
| static IEnumerable< T > | GetContent< T > () |
| | Returns all base content instances that derive from the provided content type across all currently loaded mods. More...
|
| |
| static EquipTexture | GetEquipTexture (EquipType type, int slot) |
| | Gets the equipment texture for the specified equipment type and ID. More...
|
| |
| static byte[] | GetFileBytes (string name) |
| | Gets the byte representation of the file with the specified name. The name is in the format of "ModFolder/OtherFolders/FileNameWithExtension". Throws an ArgumentException if the file does not exist. More...
|
| |
| static T | GetInstance< T > () |
| | Returns the base instance of the provided content type. More...
|
| |
|
static int | GetModBackgroundSlot (string texture) |
| | Returns the slot/ID of the background texture with the given name.
|
| |
| static int | GetModBossHeadSlot (string texture) |
| | Gets the index of the boss head texture corresponding to the given texture path. More...
|
| |
|
static ModBuff | GetModBuff (int type) |
| | Gets the ModBuff instance with the given type. If no ModBuff with the given type exists, returns null.
|
| |
|
static ModDust | GetModDust (int type) |
| | Gets the ModDust instance with the given type. Returns null if no ModDust with the given type exists.
|
| |
| static int | GetModHeadSlot (string texture) |
| | Gets the index of the head texture corresponding to the given texture path. More...
|
| |
|
static ModItem | GetModItem (int type) |
| | Gets the ModItem instance corresponding to the specified type. Returns null if no modded item has the given type.
|
| |
| static ModMount | GetModMount (int type) |
| | Gets the ModMount instance corresponding to the given type. Returns null if no ModMount has the given type. More...
|
| |
| static ModNPC | GetModNPC (int type) |
| | Gets the ModNPC instance corresponding to the specified type. More...
|
| |
| static ModProjectile | GetModProjectile (int type) |
| | Gets the ModProjectile instance corresponding to the specified type. More...
|
| |
|
static ModSurfaceBackgroundStyle | GetModSurfaceBackgroundStyle (int style) |
| | Returns the ModSurfaceBackgroundStyle object with the given ID.
|
| |
| static ModTile | GetModTile (int type) |
| | Gets the ModTile instance with the given type. If no ModTile with the given type exists, returns null. More...
|
| |
|
static ModUndergroundBackgroundStyle | GetModUndergroundBackgroundStyle (int style) |
| | Returns the ModUndergroundBackgroundStyle object with the given ID.
|
| |
|
static ModWall | GetModWall (int type) |
| | Gets the ModWall instance with the given type. If no ModWall with the given type exists, returns null.
|
| |
|
static ModWaterfallStyle | GetModWaterfallStyle (int style) |
| | Returns the ModWaterfallStyle with the given ID.
|
| |
|
static ModWaterStyle | GetModWaterStyle (int style) |
| | Returns the ModWaterStyle with the given ID.
|
| |
| static int | GoreType< T > () |
| | Get the id (type) of a ModGore by class. Assumes one instance per class. More...
|
| |
|
static bool | HasAsset (string name) |
| | Returns whether or not a asset with the specified name exists. Includes the mod name prefix like Request
|
| |
| static int | ItemType< T > () |
| | Get the id (type) of a ModItem by class. Assumes one instance per class. More...
|
| |
| static int | MountType< T > () |
| | Get the id (type) of a ModMount by class. Assumes one instance per class. More...
|
| |
| static int | NPCType< T > () |
| | Get the id (type) of a ModNPC by class. Assumes one instance per class. More...
|
| |
|
static Stream | OpenRead (string assetName, bool newFileStream=false) |
| |
| static int | PrefixType< T > () |
| | Get the id (type) of a ModPrefix by class. Assumes one instance per class. More...
|
| |
| static int | ProjectileType< T > () |
| | Get the id (type) of a ModProjectile by class. Assumes one instance per class. More...
|
| |
| static TeleportPylonType | PylonType< T > () |
| | Get the id (type) of a ModPylon by class. Assumes one instance per class. If nothing is found, returns 0, or the "Forest Pylon" type. More...
|
| |
| static int | RarityType< T > () |
| | Get the id (type) of a ModRarity by class. Assumes one instance per class. More...
|
| |
| static Asset< T > | Request< T > (string name, AssetRequestMode mode=AssetRequestMode.AsyncLoad) |
| | Gets the asset with the specified name. Throws an Exception if the asset does not exist. More...
|
| |
| static bool | RequestIfExists< T > (string name, out Asset< T > asset, AssetRequestMode mode=AssetRequestMode.AsyncLoad) |
| |
|
static void | SplitName (string name, out string domain, out string subName) |
| |
| static int | TileEntityType< T > () |
| | Get the id (type) of a ModTileEntity by class. Assumes one instance per class. More...
|
| |
| static int | TileType< T > () |
| | Get the id (type) of a ModTile by class. Assumes one instance per class. More...
|
| |
| static bool | TryFind< T > (string fullname, out T value) |
| | Safely attempts to find the content instance with the specified full name. Caching the result is recommended. More...
|
| |
| static bool | TryFind< T > (string modName, string name, out T value) |
| | Safely attempts to find the content instance with the specified name and mod name. Caching the result is recommended. More...
|
| |
| static int | WallType< T > () |
| | Get the id (type) of a ModWall by class. Assumes one instance per class. More...
|
| |
Manages content added by mods. Liasons between mod content and Terraria's arrays and oversees the Loader classes.