Terraria ModLoader  0.11.7.8
A mod to make and play Terraria mods
Class Hierarchy

Go to the graphical class hierarchy

This inheritance list is sorted roughly, but not completely, alphabetically:
[detail level 123]
 CAttribute
 CTerraria.ModLoader.BackgroundTextureLoaderThis is the class that keeps track of all modded background textures and their slots/IDs.
 CTerraria.ModLoader.IO.BinaryIO
 CBinaryReader
 CBinaryWriter
 CTerraria.ModLoader.BuffLoaderThis serves as the central class from which buff-related functions are supported and carried out.
 CTerraria.ModLoader.CombinedHooks
 CTerraria.ModLoader.CommandCaller
 CTerraria.ModLoader.CommandManagerThis serves as the central class from which ModCommand functions are supported and carried out.
 CTerraria.ModLoader.Config.ConfigManager
 CTerraria.ModLoader.ContentInstance.ContentEntry
 CTerraria.ModLoader.ContentInstance
 CTerraria.ModLoader.ContentInstance< T >
 CDefaultContractResolver
 CTerraria.ModLoader.DrawLayer< InfoType >This class represents a layer of the drawing of an object, using a certain type of InfoType to help with its drawing.
 CTerraria.ModLoader.DrawLayer< PlayerDrawInfo >
 CTerraria.ModLoader.DrawLayer< PlayerHeadDrawInfo >
 CTerraria.ModLoader.EquipLoaderThis 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.
 CTerraria.ModLoader.EquipTextureThis 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.
 CTerraria.ModLoader.ErrorLoggerNOTE: 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.
 CException
 CTerraria.ModLoader.FrameworkVersion
 CTerraria.ModLoader.GlobalBgStyleThis class serves to collect functions that operate on any kind of background style, without being specific to one single background style.
 CTerraria.ModLoader.GlobalBuffThis class allows you to modify the behavior of any buff in the game.
 CTerraria.ModLoader.GlobalItemThis 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.
 CTerraria.ModLoader.GlobalNPCThis 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.
 CTerraria.ModLoader.GlobalProjectileThis 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.
 CTerraria.ModLoader.GlobalRecipeThis class provides hooks that control all recipes in the game.
 CTerraria.ModLoader.GlobalTileThis 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.
 CTerraria.ModLoader.GlobalWallThis 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.
 CTerraria.ModLoader.ItemLoader.HookList
 CTerraria.ModLoader.NPCLoader.HookList
 CTerraria.ModLoader.PlayerHooks.HookList
 CTerraria.ModLoader.ProjectileLoader.HookList
 CICloneable
 CIEnumerable< KeyValuePair< string, object >>
 CTerraria.ModLoader.IO.ImageIO
 CIOException
 CTerraria.ModLoader.IO.ItemIO
 CTerraria.ModLoader.ItemLoaderThis serves as the central class from which item-related functions are carried out. It also stores a list of mod items by ID.
 CIValueProvider
 CTerraria.ModLoader.Exceptions.LevenshteinDistance
 CTerraria.ModLoader.Logging
 CTerraria.ModLoader.MapLegend
 CTerraria.ModLoader.ModMod 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.
 CTerraria.ModLoader.ModBuffThis class serves as a place for you to define a new buff and how that buff behaves.
 CTerraria.ModLoader.ModCactusThis 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.
 CTerraria.ModLoader.ModCommandThis class represents a chat or console command. Use the CommandType to specify the scope of the command.
 CTerraria.ModLoader.Config.ModConfigModConfig provides a way for mods to be configurable. ModConfigs can either be Client specific or Server specific. When joining a MP server, Client configs are kept but Server configs are synced from the server. Using serialization attributes such as [DefaultValue(5)] or [JsonIgnore] are critical for proper usage of ModConfig. tModLoader also provides its own attributes such as ReloadRequiredAttribute and LabelAttribute.
 CTerraria.ModLoader.ModContentManages content added by mods. Liasons between mod content and Terraria's arrays and oversees the Loader classes.
 CTerraria.ModLoader.ModDustThis 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.
 CTerraria.ModLoader.ModGoreThis 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.
 CTerraria.ModLoader.ModHotKeyRepresents a loaded hotkey. It is suggested to access the hotkey status only in ModPlayer.ProcessTriggers.
 CTerraria.ModLoader.ModItemThis 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.
 CTerraria.ModLoader.ModLoaderThis serves as the central class which loads mods. It contains many static fields and methods related to mods and their contents.
 CTerraria.ModLoader.ModMountDataThis 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.
 CTerraria.ModLoader.ModNet
 CTerraria.ModLoader.ModNPCThis 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.
 CTerraria.ModLoader.ModPalmTreeThis 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.
 CTerraria.ModLoader.ModPlayerA 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.
 CTerraria.ModLoader.ModPrefix
 CTerraria.ModLoader.ModProjectileThis 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.
 CTerraria.ModLoader.ModPropertiesThis is a struct that stores the properties of a mod. Without setting it in your Mod constructor, all properties default to true.
 CTerraria.ModLoader.ModSideExtensions
 CTerraria.ModLoader.ModSoundThis 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.
 CTerraria.ModLoader.ModSurfaceBgStyleEach 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.
 CTerraria.ModLoader.ModTileThis 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.
 CTerraria.ModLoader.ModTranslation
 CTerraria.ModLoader.ModTreeThis 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.
 CTerraria.ModLoader.ModUgBgStyleEach background style determines in its own way how exactly the background is drawn. This class serves as a collection of functions for underground backgrounds.
 CTerraria.ModLoader.ModWallThis 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.
 CTerraria.ModLoader.ModWaterfallStyleRepresents a style of waterfalls that gets drawn. This is mostly used to determine the color of the waterfall.
 CTerraria.ModLoader.ModWaterStyleRepresents 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.
 CTerraria.ModLoader.ModWorldA 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.
 CTerraria.ModLoader.MonoModHooks
 CTerraria.ModLoader.MountLoaderThis serves as the central place from which mounts are stored and mount-related functions are carried out.
 CTerraria.ModLoader.Audio.Music
 CTerraria.ModLoader.NPCHeadLoaderThis 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.
 CTerraria.ModLoader.NPCLoaderThis serves as the central class from which NPC-related functions are carried out. It also stores a list of mod NPCs by ID.
 CTerraria.ModLoader.NPCSpawnHelperThis 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.
 CTerraria.ModLoader.NPCSpawnInfoA 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.
 CTerraria.ModLoader.IO.TagIO.PayloadHandler
 CTerraria.ModLoader.IO.TagIO.PayloadHandler< string >
 CTerraria.ModLoader.IO.TagIO.PayloadHandler< T >
 CTerraria.ModLoader.BackupIO.PlayerResponsible for archiving player backups
 CTerraria.ModLoader.PlayerDrawInfoA struct that contains information that may help with PlayerLayer drawing.
 CTerraria.ModLoader.PlayerHeadDrawInfoA struct that contains information that may help with PlayerHeadLayer drawing.
 CTerraria.ModLoader.PlayerHooksThis is where all ModPlayer hooks are gathered and called.
 CTerraria.ModLoader.ProjectileLoaderThis serves as the central class from which projectile-related functions are carried out. It also stores a list of mod projectiles by ID.
 CTerraria.ModLoader.RecipeEditorThis 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.
 CTerraria.ModLoader.RecipeFinderThis 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.
 CTerraria.ModLoader.RecipeHooksThis is where all ModRecipe and GlobalRecipe hooks are gathered and called.
 CTerraria.ModLoader.SoundLoaderThis class is used to keep track of and support the existence of custom sounds that have been added to the game.
 CTerraria.ModLoader.SpawnCondition
 CTerraria.ModLoader.SurfaceBgStyleLoader
 CTerraria.ModLoader.IO.TagIO
 CTerraria.ModLoader.IO.TagPrinter
 CTerraria.ModLoader.IO.TagSerializable
 CTerraria.ModLoader.IO.TagSerializer
 CTerraria.ModLoader.IO.TagSerializer< bool, byte >
 CTerraria.ModLoader.IO.TagSerializer< Color, int >
 CTerraria.ModLoader.IO.TagSerializer< Point16, TagCompound >
 CTerraria.ModLoader.IO.TagSerializer< Rectangle, TagCompound >
 CTerraria.ModLoader.IO.TagSerializer< T, TagCompound >
 CTerraria.ModLoader.IO.TagSerializer< uint, int >
 CTerraria.ModLoader.IO.TagSerializer< ulong, long >
 CTerraria.ModLoader.IO.TagSerializer< ushort, short >
 CTerraria.ModLoader.IO.TagSerializer< Vector2, TagCompound >
 CTerraria.ModLoader.IO.TagSerializer< Vector3, TagCompound >
 CTileEntity
 CTerraria.ModLoader.TileLoaderThis serves as the central class from which tile-related functions are supported and carried out.
 CTerraria.ModLoader.TooltipLineThis 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.
 CTerraria.ModLoader.TopoSort< T >
 CTypeConverter
 CTerraria.ModLoader.UgBgStyleLoaderThis serves as the central class from which ModUgBgStyle functions are supported and carried out.
 CTerraria.ModLoader.IO.UploadFile
 CTerraria.ModLoader.WallLoaderThis serves as the central class from which wall-related functions are supported and carried out.
 CTerraria.ModLoader.WaterfallStyleLoader
 CTerraria.ModLoader.WaterStyleLoaderThis serves as the central class from which WaterStyle functions are supported and carried out.
 CTerraria.ModLoader.BackupIO.WorldResponsible for archiving world backups
 CTerraria.ModLoader.WorldHooksThis is where all ModWorld hooks are gathered and called.
 CIDisposable
 CRecipe