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

◆ GetContent< T >()

IEnumerable< T > Terraria.ModLoader.Mod.GetContent< T > ( )
inlineinherited

Returns all registered content instances that derive from the provided type that are added by this mod.
This only includes the 'template' instance for each piece of content, not all the clones/new instances which get added to Items/Players/NPCs etc. as the game is played.

Type Constraints
T :ILoadable 

Definition at line 209 of file Mod.cs.

209 : ILoadable
210 {
211 return content.OfType<T>();
212 }
readonly IList< ILoadable > content
Definition Mod.cs:41

References Terraria.ModLoader.Mod.content.