41471 {
41472 for (int i = 0; i < 58; i++)
41473 {
41475 {
41477 {
41479 }
41481 {
41483 }
41484 return;
41485 }
41486 }
41488 {
41489 return;
41490 }
41491 for (
int j = 0;
j < 40;
j++)
41492 {
41494 {
41496 {
41498 }
41500 {
41502 }
41503 break;
41504 }
41505 }
41506 }
Item[] item
The items this chest contains. F:Terraria.Chest.maxItems elements long.
int stack
The current stack of the item. F:Terraria.Item.maxStack indicates the max possible stack.
void SetDefaults(int Type=0)
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
static bool ConsumeItem(Item item, Player player)
If ModItem.ConsumeItem or any of the GlobalItem.ConsumeItem hooks returns false, sets consume to fals...
This serves as the central class from which item-related functions are carried out....
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...