using System; using StardewValley; using StardewValley.Objects; namespace StardewModdingAPI.Events { /// Event arguments for a event. public class ChestInventoryChangedEventArgs : EventArgs { /********* ** Accessors *********/ /// The chest whose inventory changed. public Chest Chest { get; } /// The location containing the chest. public GameLocation Location { get; } /// The inventory changes in the chest. public ItemStackChange[] Changes { get; } /********* ** Public methods *********/ /// Construct an instance. /// The chest whose inventory changed. /// The location containing the chest. /// The inventory changes in the chest. internal ChestInventoryChangedEventArgs(Chest chest, GameLocation location, ItemStackChange[] changes) { this.Location = location; this.Chest = chest; this.Changes = changes; } } }