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

◆ GetTypeNetName()

NetworkText Terraria.NPC.GetTypeNetName ( )
inline

Definition at line 2289 of file NPC.cs.

2290 {
2291 return NetworkText.FromKey(Lang.GetNPCName(netID).Key);
2292 }
static NetworkText FromKey(string key, params object[] substitutions)
Creates a NetworkText object from a localization key and optional substitutions. The receiving client...
Represents text that will be sent over the network in multiplayer and displayed to the receiving user...
int netID
Similar to F:Terraria.NPC.type, but accounts for negative T:Terraria.ID.NPCID values.
Definition NPC.cs:1168

References Terraria.Localization.NetworkText.FromKey(), Terraria.Lang.GetNPCName(), and Terraria.NPC.netID.

Referenced by Terraria.NPC.DoDeathEvents_CelebrateBossDeath(), Terraria.NPC.GetFullNetName(), and Terraria.NPC.GetGivenOrTypeNetName().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: