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

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

Inherits Terraria.ModLoader.ILoot.

Public Member Functions

 ItemLoot (int itemType, 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.ItemLoot.Add ( IItemDropRule  entry)

◆ Get()

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

◆ Remove()

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

◆ RemoveWhere()

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