Line 573: |
Line 573: |
| |arg type 3 = <tt>IEnumerable<Debris></tt> | | |arg type 3 = <tt>IEnumerable<Debris></tt> |
| |arg desc 3 = A list of debris removed since the last update tick. | | |arg desc 3 = A list of debris removed since the last update tick. |
| + | |
| + | |arg name 4 = <tt>e.IsCurrentLocation</tt> |
| + | |arg type 4 = <tt>bool</tt> |
| + | |arg desc 4 = Whether <tt>e.Location</tt> is the location containing the local player. |
| + | }} |
| + | {{/event |
| + | |group = World |
| + | |name = FurnitureListChanged |
| + | |desc = {{SMAPI upcoming|3.11}}Raised after furniture are added/removed in any location. |
| + | |
| + | This event isn't raised for furniture already present when a location is added. If you need to handle those too, use [[#World.LocationListChanged|<tt>LocationListChanged</tt>]] and check <tt>e.Added</tt> → <tt>furniture</tt>. |
| + | |
| + | |arg name 1 = <tt>e.Location</tt> |
| + | |arg type 1 = <tt>GameLocation</tt> |
| + | |arg desc 1 = The location which changed. |
| + | |
| + | |arg name 2 = <tt>e.Added</tt> |
| + | |arg type 2 = <tt>IEnumerable<Furniture></tt> |
| + | |arg desc 2 = A list of furniture added since the last update tick. |
| + | |
| + | |arg name 3 = <tt>e.Removed</tt> |
| + | |arg type 3 = <tt>IEnumerable<Furniture></tt> |
| + | |arg desc 3 = A list of furniture removed since the last update tick. |
| | | |
| |arg name 4 = <tt>e.IsCurrentLocation</tt> | | |arg name 4 = <tt>e.IsCurrentLocation</tt> |
Line 627: |
Line 650: |
| |group = World | | |group = World |
| |name = ObjectListChanged | | |name = ObjectListChanged |
− | |desc = Raised after objects are added/removed in any location (including machines, furniture, fences, etc). For floating items, see <tt>DebrisListChanged</tt>. | + | |desc = Raised after objects are added/removed in any location (including machines, fences, etc). This doesn't apply for floating items (see <tt>DebrisListChanged</tt>) or furniture (see <tt>FurnitureListChanged</tt>). |
| | | |
| This event isn't raised for objects already present when a location is added. If you need to handle those too, use [[#World.LocationListChanged|<tt>LocationListChanged</tt>]] and check <tt>e.Added</tt> → <tt>objects</tt>. | | This event isn't raised for objects already present when a location is added. If you need to handle those too, use [[#World.LocationListChanged|<tt>LocationListChanged</tt>]] and check <tt>e.Added</tt> → <tt>objects</tt>. |