TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ RarityType< T >()

static int Terraria.ModLoader.ModContent.RarityType< T > ( )
inlinestatic

Get the id (type) of a ModRarity by class. Assumes one instance per class.

Type Constraints
T :ModRarity 

Definition at line 313 of file ModContent.cs.

313 : ModRarity
314 {
315 return GetInstance<T>()?.Type ?? 0;
316 }
static T GetInstance< T >()
Returns the template instance of the provided content type (not the clone/new instance which gets add...
Definition ModContent.cs:42

References Terraria.ModLoader.ModContent.GetInstance< T >().

+ Here is the call graph for this function: