tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.ModLoader.GlobalLoot Struct Reference

This readonly struct is a simple shortcut for modifying global drop rules in an ItemDropDatabase. More...

Inherits Terraria.ModLoader.ILoot.

Public Member Functions

 GlobalLoot (ItemDropDatabase itemDropDatabase)
 
IItemDropRule Add (IItemDropRule entry)
 
List< IItemDropRuleGet (bool unusedParam=true)
 
IItemDropRule Remove (IItemDropRule entry)
 
void RemoveWhere (Predicate< IItemDropRule > predicate, bool unusedParam=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 for modifying global drop rules in an ItemDropDatabase.

Member Function Documentation

◆ Add()

IItemDropRule Terraria.ModLoader.GlobalLoot.Add ( IItemDropRule  entry)

◆ Get()

List< IItemDropRule > Terraria.ModLoader.GlobalLoot.Get ( bool  unusedParam = true)

◆ Remove()

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

◆ RemoveWhere()

void Terraria.ModLoader.GlobalLoot.RemoveWhere ( Predicate< IItemDropRule predicate,
bool  unusedParam = true 
)