tModLoader v2023.01
A mod to make and play Terraria mods
Terraria.ModLoader.NPCLoot Struct Reference

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

Inherits Terraria.ModLoader.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 Terraria.ModLoader.NPCLoot.Add ( IItemDropRule  entry)

◆ Get()

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

◆ Remove()

IItemDropRule Terraria.ModLoader.NPCLoot.Remove ( IItemDropRule  entry)

◆ RemoveWhere()

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