tModLoader v2024.03
A mod to make and play Terraria mods
NPCShop.Entry Class Reference

Inherits AbstractNPCShop.Entry.

Public Member Functions

 Entry (int item, params Condition[] condition)
 
 Entry (Item item, params Condition[] condition)
 
Entry AddCondition (Condition condition)
 
Entry AddShopOpenedCallback (Action< Item, NPC > callback)
 
bool ConditionsMet ()
 
Entry Disable ()
 
void OnShopOpen (Item item, NPC npc)
 
Entry OrderLast ()
 
Entry ReserveSlot ()
 
Entry SortAfter (Entry target)
 
Entry SortBefore (Entry target)
 

Properties

IEnumerable< Condition > Conditions [get]
 
bool Disabled [get]
 
Item Item [get]
 
bool OrdersLast [get]
 
bool SlotReserved [get]
 
- Properties inherited from AbstractNPCShop.Entry
IEnumerable< Condition > Conditions [get]
 
Item Item [get]
 

Property Documentation

◆ Conditions

IEnumerable<Condition> NPCShop.Entry.Conditions
get

Implements AbstractNPCShop.Entry.

◆ Item

Item NPCShop.Entry.Item
get

Implements AbstractNPCShop.Entry.