using System;
using System.Collections.Generic;
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 added item stacks.
public IEnumerable- Added { get; }
/// The removed item stacks.
public IEnumerable
- Removed { get; }
/// The item stacks whose size changed.
public IEnumerable QuantityChanged { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The chest whose inventory changed.
/// The location containing the chest.
/// The added item stacks.
/// The removed item stacks.
/// The item stacks whose size changed.
internal ChestInventoryChangedEventArgs(Chest chest, GameLocation location, Item[] added, Item[] removed, ItemStackSizeChange[] quantityChanged)
{
this.Location = location;
this.Chest = chest;
this.Added = added;
this.Removed = removed;
this.QuantityChanged = quantityChanged;
}
}
}