tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.Bestiary.BestiaryDatabase Class Reference

Public Member Functions

void ApplyPass (BestiaryEntriesPass pass)
 
delegate void BestiaryEntriesPass (BestiaryEntry entry)
 
BestiaryEntry FindEntryByNPCID (int npcNetId)
 
List< BestiaryEntryGetBestiaryEntriesByMod (Mod mod)
 Gets entries from the database created by the mod specified More...
 
float GetCompletedPercentByMod (Mod mod)
 Gets the completed percent of the given mod's bestiary More...
 
void Merge (ItemDropDatabase dropsDatabase)
 
BestiaryEntry Register (BestiaryEntry entry)
 
IBestiaryEntryFilter Register (IBestiaryEntryFilter filter)
 
IBestiarySortStep Register (IBestiarySortStep sortStep)
 

Properties

List< BestiaryEntryEntries [get]
 
List< IBestiaryEntryFilterFilters [get]
 
List< IBestiarySortStepSortSteps [get]
 

Member Function Documentation

◆ GetBestiaryEntriesByMod()

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

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

◆ GetCompletedPercentByMod()

float Terraria.GameContent.Bestiary.BestiaryDatabase.GetCompletedPercentByMod ( Mod  mod)

Gets the completed percent of the given mod's bestiary

Parameters
modThe mod to calculate bestiary completeness (null for Terraria)
Returns
A float ranging from 0 to 1 representing the completeness of the bestiary or returns -1 if the mod has no entries