tModLoader v2024.09
A mod to make and play Terraria mods
NPCLoot Struct Reference

This readonly struct is a simple shortcut to ItemDropDatabase's methods. More...

Inherits ILoot.

Public Member Functions

 NPCLoot (int npcNetId, ItemDropDatabase itemDropDatabase)
 
IItemDropRule Add (IItemDropRule entry)
 
List< IItemDropRuleGet (bool includeGlobalDrops=true)
 
IItemDropRule Remove (IItemDropRule entry)
 
void RemoveWhere (Predicate< IItemDropRule > predicate, bool includeGlobalDrops=true)
 
IItemDropRule Add (IItemDropRule entry)
 
List< IItemDropRuleGet (bool includeGlobalDrops=true)
 
IItemDropRule Remove (IItemDropRule entry)
 
void RemoveWhere (Predicate< IItemDropRule > predicate, bool includeGlobalDrops=true)
 

Detailed Description

This readonly struct is a simple shortcut to ItemDropDatabase's methods.

Member Function Documentation

◆ Add()

IItemDropRule NPCLoot.Add ( IItemDropRule  entry)

Implements ILoot.

◆ Get()

List< IItemDropRule > NPCLoot.Get ( bool  includeGlobalDrops = true)

Implements ILoot.

◆ Remove()

IItemDropRule NPCLoot.Remove ( IItemDropRule  entry)

Implements ILoot.

◆ RemoveWhere()

void NPCLoot.RemoveWhere ( Predicate< IItemDropRule predicate,
bool  includeGlobalDrops = true 
)

Implements ILoot.