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

◆ RemoveWhere()

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

Implements Terraria.ModLoader.ILoot.

Definition at line 37 of file NPCLoot.cs.

38 {
39 foreach (IItemDropRule entry in Get(includeGlobalDrops))
40 {
41 if (predicate(entry))
42 {
43 Remove(entry);
44 }
45 }
46 }
IItemDropRule Remove(IItemDropRule entry)
Definition NPCLoot.cs:31
List< IItemDropRule > Get(bool includeGlobalDrops=true)
Definition NPCLoot.cs:20

References Terraria.ModLoader.NPCLoot.Get(), and Terraria.ModLoader.NPCLoot.Remove().

+ Here is the call graph for this function: