|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinestatic |
Adds an equipment texture of the specified type, internal name, and/or associated item to your mod.
If no internal name is provided, the associated item's name will be used instead.
You can then get the ID for your texture by calling EquipLoader.GetEquipTexture, and using the EquipTexture's Slot property.
If you need to override EquipmentTexture's hooks, you can specify the class of the equipment texture class.
If both an internal name and associated item are provided, the EquipTexture's name will be set to the internal name, alongside the keys for the equipTexture dictionary.
Additionally, if multiple EquipTextures of the same type are registered for the same item, the first one to be added will be the one automatically displayed on the player and mannequins.
| mod | The mod the equipment texture is from. |
| equipTexture | The equip texture. |
| item | The item. |
| name | The internal name. |
| type | The type. |
| texture | The texture. |
Definition at line 284 of file EquipLoader.cs.
References Terraria.ModLoader.EquipLoader.equipTextures, Terraria.ModLoader.Mod.equipTextures, Terraria.ModLoader.EquipLoader.idToSlot, Terraria.ModLoader.Mod.loading, Terraria.ModLoader.EquipLoader.ReserveEquipID(), and Terraria.ModLoader.EquipLoader.slotToId.
Referenced by Terraria.ModLoader.Default.Patreon.xAqult_Lens.Load(), Terraria.ModLoader.Default.Patreon.Tantamount_Head.OnCreated(), and Terraria.ModLoader.ModItem.Register().
Here is the call graph for this function:
Here is the caller graph for this function: