tModLoader v2024.04
A mod to make and play Terraria mods
EntitySource_OverfullInventory Class Reference

Used when attempting to add an item to the player's inventory, but it cannot fit so it spawns in the world instead.
Used in vanilla when a fished item can't fit in the player's inventory. More...

Inherits IEntitySource.

Public Member Functions

 EntitySource_OverfullInventory (Player player, string? context=null)
 

Properties

string? Context [get]
 Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses More...
 
Player Player [get]
 
- Properties inherited from IEntitySource
string? Context [get]
 Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses More...
 

Detailed Description

Used when attempting to add an item to the player's inventory, but it cannot fit so it spawns in the world instead.
Used in vanilla when a fished item can't fit in the player's inventory.

Property Documentation

◆ Context

string? EntitySource_OverfullInventory.Context
get

Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses

Implements IEntitySource.