summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/ItemStackChange.cs
blob: f9ae6df6cb3dbecb454c3601d6b95714bd801322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using StardewValley;

namespace StardewModdingAPI.Events
{
    /// <summary>Represents an inventory slot that changed.</summary>
    public class ItemStackChange
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The item in the slot.</summary>
        public Item Item { get; set; }

        /// <summary>The amount by which the item's stack size changed.</summary>
        public int StackChange { get; set; }

        /// <summary>How the inventory slot changed.</summary>
        public ChangeType ChangeType { get; set; }
    }
}