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

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

Inherits 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 GlobalLoot.Add ( IItemDropRule  entry)

Implements ILoot.

◆ Get()

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

Implements ILoot.

◆ Remove()

IItemDropRule GlobalLoot.Remove ( IItemDropRule  entry)

Implements ILoot.

◆ RemoveWhere()

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

Implements ILoot.