using StardewValley; namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.ItemData { /// A game item with metadata. internal class SearchableItem { /********* ** Accessors *********/ /// The item type. public ItemType Type { get; } /// The item instance. public Item Item { get; } /// The item's unique ID for its type. public int ID { get; } /// The item's default name. public string Name => this.Item.Name; /// The item's display name for the current language. public string DisplayName => this.Item.DisplayName; /********* ** Public methods *********/ /// Construct an instance. /// The item type. /// The unique ID (if different from the item's parent sheet index). /// The item instance. public SearchableItem(ItemType type, int id, Item item) { this.Type = type; this.ID = id; this.Item = item; } } }