Changes

→‎World: + ChestInventoryChanged in SMAPI 3.1
Line 471: Line 471:  
  |arg desc 2 = A list of locations removed since the last update tick.
 
  |arg desc 2 = A list of locations removed since the last update tick.
 
}}
 
}}
   
{{/event
 
{{/event
 
  |group = World
 
  |group = World
Line 494: Line 493:  
  |arg type 4 = <tt>bool</tt>
 
  |arg type 4 = <tt>bool</tt>
 
  |arg desc 4 = Whether <tt>e.Location</tt> is the location containing the local player.
 
  |arg desc 4 = Whether <tt>e.Location</tt> is the location containing the local player.
 +
}}
 +
{{/event
 +
|group = World
 +
|name  = ChestInventoryChanged
 +
|desc  = {{SMAPI upcoming|3.1}}Raised after items are added or removed from a chest's inventory.
 +
 +
|arg name 1 = <tt>e.Chest</tt>
 +
|arg type 1 = <tt>Chest</tt>
 +
|arg desc 1 = The chest whose inventory changed.
 +
 +
|arg name 2 = <tt>e.Location</tt>
 +
|arg type 2 = <tt>Location</tt>
 +
|arg desc 2 = The location containing the chest.
 +
 +
|arg name 3 = <tt>e.Added</tt>
 +
|arg type 3 = <tt>IEnumerable&lt;Item&gt;</tt>
 +
|arg desc 3 = The added item stacks.
 +
 +
|arg name 4 = <tt>e.Removed</tt>
 +
|arg type 4 = <tt>IEnumerable&lt;Item&gt;</tt>
 +
|arg desc 4 = The removed item stacks.
 +
 +
|arg name 5 = <tt>e.QuantityChanged</tt>
 +
|arg type 5 = <tt>IEnumerable&lt;ItemStackSizeChange&gt;</tt>
 +
|arg desc 5 = The item stacks whose quantity changed. Each <tt>ItemStackSizeChange</tt> instance includes <tt>Item</tt> (the affected item stack), <tt>OldSize</tt> (the previous stack size), and <tt>NewSize</tt> (the new stack size).
 
}}
 
}}
 
{{/event
 
{{/event
Line 517: Line 541:  
  |arg type 4 = <tt>bool</tt>
 
  |arg type 4 = <tt>bool</tt>
 
  |arg desc 4 = Whether <tt>e.Location</tt> is the location containing the local player.
 
  |arg desc 4 = Whether <tt>e.Location</tt> is the location containing the local player.
   
}}
 
}}
 
{{/event
 
{{/event
translators
8,404

edits