tModLoader v2024.09
A mod to make and play Terraria mods
DropOneByOne Class Reference

Inherits IItemDropRule.

Classes

struct  Parameters
 

Public Member Functions

 DropOneByOne (int itemId, Parameters parameters)
 
bool CanDrop (DropAttemptInfo info)
 
void ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo)
 
ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info)
 
bool CanDrop (DropAttemptInfo info)
 
void ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo)
 
ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info)
 

Public Attributes

int itemId
 

Properties

List< IItemDropRuleChainAttemptChainedRules [get]
 
Parameters parameters [get]
 
- Properties inherited from IItemDropRule
List< IItemDropRuleChainAttemptChainedRules [get]
 

Member Function Documentation

◆ CanDrop()

bool DropOneByOne.CanDrop ( DropAttemptInfo  info)

Implements IItemDropRule.

◆ ReportDroprates()

void DropOneByOne.ReportDroprates ( List< DropRateInfo drops,
DropRateInfoChainFeed  ratesInfo 
)

Implements IItemDropRule.

◆ TryDroppingItem()

ItemDropAttemptResult DropOneByOne.TryDroppingItem ( DropAttemptInfo  info)

Implements IItemDropRule.

Property Documentation

◆ ChainedRules

List<IItemDropRuleChainAttempt> DropOneByOne.ChainedRules
get

Implements IItemDropRule.