tModLoader v0.11.8.9
A mod to make and play Terraria mods
Package List
Here are the packages with brief descriptions (if available):
[detail level 12345]
 NTerraria
 NModLoader
 NAudio
 NConfig
 NExceptions
 NIO
 CAutoloadBossHead
 CAutoloadEquip
 CAutoloadHead
 CBackgroundTextureLoaderThis is the class that keeps track of all modded background textures and their slots/IDs.
 CBuffLoaderThis serves as the central class from which buff-related functions are supported and carried out.
 CCombinedHooks
 CCommandCaller
 CCommandManagerThis serves as the central class from which ModCommand functions are supported and carried out.
 CContentInstance
 CDrawableTooltipLineThis class serves as a way to store information about a line that will be drawn of tooltip for an item. You will create and manipulate objects of this class if you use the draw hooks for tooltips in ModItem and GlobalItem. For examples, see ExampleSword
 CDrawLayerThis class represents a layer of the drawing of an object, using a certain type of InfoType to help with its drawing.
 CEquipLoaderThis serves as a central place to store equipment slots and their corresponding textures. You will use this to obtain the IDs for your equipment textures.
 CEquipTextureThis serves as a place for you to program behaviors of equipment textures. This is useful for equipment slots that do not have any item associated with them (for example, the Werewolf buff). Note that this class is purely for visual effects.
 CErrorLoggerNOTE: This class is deprecated. Use Logging instead (see ExampleMod for example) This class consists of functions that write error messages to text files for you to read. It also lets you write logs to text files.
 CFrameworkVersion
 CGlobalBgStyleThis class serves to collect functions that operate on any kind of background style, without being specific to one single background style.
 CGlobalBuffThis class allows you to modify the behavior of any buff in the game.
 CGlobalItemThis class allows you to modify and use hooks for all items, including vanilla items. Create an instance of an overriding class then call Mod.AddGlobalItem to use this.
 CGlobalNPCThis class allows you to modify and use hooks for all NPCs, including vanilla mobs. Create an instance of an overriding class then call Mod.AddGlobalNPC to use this.
 CGlobalProjectileThis class allows you to modify and use hooks for all projectiles, including vanilla projectiles. Create an instance of an overriding class then call Mod.AddGlobalProjectile to use this.
 CGlobalRecipeThis class provides hooks that control all recipes in the game.
 CGlobalTileThis class allows you to modify the behavior of any tile in the game. Create an instance of an overriding class then call Mod.AddGlobalTile to use this.
 CGlobalWallThis class allows you to modify the behavior of any wall in the game (although admittedly walls don't have much behavior). Create an instance of an overriding class then call Mod.AddGlobalWall to use this.
 CItemLoaderThis serves as the central class from which item-related functions are carried out. It also stores a list of mod items by ID.
 CLogging
 CMapLegend
 CModMod is an abstract class that you will override. It serves as a central place from which the mod's contents are stored. It provides methods for you to use or override.
 CModBuffThis class serves as a place for you to define a new buff and how that buff behaves.
 CModCactusThis class represents a type of modded cactus. The cactus will share a tile ID with the vanilla cacti (80), so that the cacti can freely convert between each other if the sand below is converted. This class encapsulates a function for retrieving the cactus's texture, the only difference between each type of cactus. Use ModTile.SetModCactus or GlobalTile.AddModCactus to make a tile able to grow this kind of cactus.
 CModCommandThis class represents a chat or console command. Use the CommandType to specify the scope of the command.
 CModContentManages content added by mods. Liasons between mod content and Terraria's arrays and oversees the Loader classes.
 CModDustThis class represents a type of dust that is added by a mod. Only one instance of this class will ever exist for each type of dust you add.
 CModGoreThis class allows you to customize the behavior of a custom gore. Create a new instance of this and pass it as a parameter to Mod.AddGore to customize the gore you are adding. If you are autoloading gore, then give it the same name as the gore texture.
 CModHotKeyRepresents a loaded hotkey. It is suggested to access the hotkey status only in ModPlayer.ProcessTriggers.
 CModItemThis class serves as a place for you to place all your properties and hooks for each item. Create instances of ModItem (preferably overriding this class) to pass as parameters to Mod.AddItem.
 CModLoaderThis serves as the central class which loads mods. It contains many static fields and methods related to mods and their contents.
 CModMountDataThis class serves as a place for you to place all your properties and hooks for each mount. Create instances of ModMoundData (preferably overriding this class) to pass as parameters to Mod.AddMount. Only one instance of ModMountData will exist for each mount, so storing player specific data on the ModMountData is not good. Modders can use player.mount._mountSpecificData or a ModPlayer class to store player specific data relating to a mount. Use SetMount to assign these fields.
 CModNet
 CModNPCThis class serves as a place for you to place all your properties and hooks for each NPC. Create instances of ModNPC (preferably overriding this class) to pass as parameters to Mod.AddNPC.
 CModPacketThis class inherits from BinaryWriter. This means that you can use all of its writing functions to send information between client and server. This class also comes with a Send method that's used to actually send everything you've written between client and server
 CModPalmTreeThis class represents a type of modded palm tree. The palm tree will share a tile ID with the vanilla palm trees (323), so that the trees can freely convert between each other if the sand below is converted. This class encapsulates several functions that distinguish each type of palm tree from each other. Use ModTile.SetModPalmTree or GlobalTile.AddModPalmTree to make a tile able to grow this kind of palm tree.
 CModPlayerA ModPlayer instance represents an extension of a Player instance. You can store fields in the ModPlayer classes, much like how the Player class abuses field usage, to keep track of mod-specific information on the player that a ModPlayer instance represents. It also contains hooks to insert your code into the Player class.
 CModPrefix
 CModProjectileThis class serves as a place for you to place all your properties and hooks for each projectile. Create instances of ModProjectile (preferably overriding this class) to pass as parameters to Mod.AddProjectile.
 CModPropertiesThis is a struct that stores the properties of a mod. Without setting it in your Mod constructor, all properties default to true.
 CModRecipeThis class extends Terraria.Recipe, meaning you can use it in a similar manner to vanilla recipes. However, it provides methods that simplify recipe creation. Recipes are added by creating new instances of ModRecipe, then calling the AddRecipe method.
 CModSideExtensions
 CModSoundThis class allows you to customize how a sound you add is played. To use this, pass an instance to Mod.AddSound, or if you are autoloading sounds, give an overriding class the same name as the file with the sound you are adding.
 CModSurfaceBgStyleEach background style determines in its own way how exactly the background is drawn. This class serves as a collection of functions for above-ground backgrounds.
 CModTileThis class represents a type of tile that can be added by a mod. Only one instance of this class will ever exist for each type of tile that is added. Any hooks that are called will be called by the instance corresponding to the tile type. This is to prevent the game from using a massive amount of memory storing tile instances.
 CModTileEntityTile Entities are Entities tightly coupled with tiles, allowing the possibility of tiles to exhibit cool behavior. TileEntity.Update is called in SP and on Server, not on Clients.
 CModTranslation
 CModTreeThis class represents a type of modded tree. The tree will share a tile ID with the vanilla trees (5), so that the trees can freely convert between each other if the soil below is converted. This class encapsulates several functions that distinguish each type of tree from each other. Use ModTile.SetModTree or GlobalTile.AddModTree to make a tile able to grow this kind of tree.
 CModUgBgStyleEach background style determines in its own way how exactly the background is drawn. This class serves as a collection of functions for underground backgrounds.
 CModWallThis class represents a type of wall that can be added by a mod. Only one instance of this class will ever exist for each type of wall that is added. Any hooks that are called will be called by the instance corresponding to the wall type.
 CModWaterfallStyleRepresents a style of waterfalls that gets drawn. This is mostly used to determine the color of the waterfall.
 CModWaterStyleRepresents a style of water that gets drawn, based on factors such as the background. This is used to determine the color of the water, as well as other things as determined by the hooks below.
 CModWorldA ModWorld instance represents an extension of a World. You can store fields in the ModWorld classes to keep track of mod-specific information on the world. It also contains hooks to insert your code into the world generation process.
 CMonoModHooks
 CMountLoaderThis serves as the central place from which mounts are stored and mount-related functions are carried out.
 CNPCHeadLoaderThis class serves as a central place from which NPC head slots are stored and NPC head textures are assigned. This can be used to obtain the corresponding slots to head textures.
 CNPCLoaderThis serves as the central class from which NPC-related functions are carried out. It also stores a list of mod NPCs by ID.
 CNPCSpawnHelperThis server as a central class to help modders spawn their npcs. It's basically the vanilla spawn code if-else chains condensed into objects. See ExampleMod for usages.
 CNPCSpawnInfoA struct that stores information regarding where an NPC is naturally spawning and the player it is spawning around. This serves to reduce the parameter count for ModNPC.CanSpawn and GlobalNPC.EditSpawnPool.
 CPlayerDrawInfoA struct that contains information that may help with PlayerLayer drawing.
 CPlayerHeadDrawInfoA struct that contains information that may help with PlayerHeadLayer drawing.
 CPlayerHeadLayerThis class represents a DrawLayer for the player's map icon, and uses PlayerDrawHeadInfo as its InfoType. Drawing should be done directly through drawInfo.spriteBatch.
 CPlayerHooksThis is where all ModPlayer hooks are gathered and called.
 CPlayerLayerThis class represents a DrawLayer for the player, and uses PlayerDrawInfo as its InfoType. Drawing should be done by adding Terraria.DataStructures.DrawData objects to Main.playerDrawData.
 CProjectileLoaderThis serves as the central class from which projectile-related functions are carried out. It also stores a list of mod projectiles by ID.
 CRecipeEditorThis class allows you to make any changes you want to a recipe, whether it be adding/removing ingredients, changing the result, or removing the recipe entirely.
 CRecipeFinderThis class will search through all existing recipes for you based on criteria that you give it. It's useful for finding a particular vanilla recipe that you wish to remove or edit. Use this by creating new instances with the empty constructor for each search you perform.
 CRecipeHooksThis is where all ModRecipe and GlobalRecipe hooks are gathered and called.
 CSoundLoaderThis class is used to keep track of and support the existence of custom sounds that have been added to the game.
 CSpawnCondition
 CSurfaceBgStyleLoader
 CTileLoaderThis serves as the central class from which tile-related functions are supported and carried out.
 CTooltipLineThis class serves as a way to store information about a line of tooltip for an item. You will create and manipulate objects of this class if you use the ModifyTooltips hook.
 CTopoSort
 CUgBgStyleLoaderThis serves as the central class from which ModUgBgStyle functions are supported and carried out.
 CUsageException
 CWallLoaderThis serves as the central class from which wall-related functions are supported and carried out.
 CWaterfallStyleLoader
 CWaterStyleLoaderThis serves as the central class from which WaterStyle functions are supported and carried out.
 CWorldHooksThis is where all ModWorld hooks are gathered and called.