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

◆ GetBestiaryEntriesByMod()

List< BestiaryEntry > Terraria.GameContent.Bestiary.BestiaryDatabase.GetBestiaryEntriesByMod ( Mod mod)
inline

Gets entries from the database created by the mod specified.

Parameters
modThe mod to find entries from (null for Terraria)
Returns
A list of the entries created by the mod specified or null if it created none

Definition at line 122 of file BestiaryDatabase.cs.

123 {
124 if (mod == null)
125 {
126 return _vanillaEntries;
127 }
128 _byMod.TryGetValue(mod, out var value);
129 return value;
130 }
Dictionary< Mod, List< BestiaryEntry > > _byMod

References Terraria.GameContent.Bestiary.BestiaryDatabase._byMod, and Terraria.GameContent.Bestiary.BestiaryDatabase._vanillaEntries.

Referenced by Terraria.ModLoader.UI.UIBestiaryBar.RecalculateBars().

+ Here is the caller graph for this function: