tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.ModLoader.Config.ItemDefinition Class Reference

ItemDefinition represents an Item identity. A typical use for this class is usage in ModConfig, perhapse to facilitate an Item tweaking mod. More...

Inherits Terraria.ModLoader.Config.EntityDefinition.

Public Member Functions

 ItemDefinition (int type)
 
 ItemDefinition (string key)
 
 ItemDefinition (string mod, string name)
 
- Public Member Functions inherited from Terraria.ModLoader.Config.EntityDefinition
 EntityDefinition (string key)
 
 EntityDefinition (string mod, string name)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
TagCompound SerializeData ()
 
override string ToString ()
 
TagCompound SerializeData ()
 

Static Public Member Functions

static ItemDefinition FromString (string s)
 
static ItemDefinition Load (TagCompound tag)
 

Static Public Attributes

static readonly Func< TagCompound, ItemDefinitionDESERIALIZER = Load
 

Properties

override int Type [get]
 
- Properties inherited from Terraria.ModLoader.Config.EntityDefinition
bool IsUnloaded [get]
 
abstract int Type [get]
 

Additional Inherited Members

- Public Attributes inherited from Terraria.ModLoader.Config.EntityDefinition
string Mod
 
string Name
 

Detailed Description

ItemDefinition represents an Item identity. A typical use for this class is usage in ModConfig, perhapse to facilitate an Item tweaking mod.