@wayward/types 2.14.4-beta.dev.20250218.1 → 2.14.4-beta.dev.20250219.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,7 @@ import type { IGetBestItemsOptions } from "@wayward/game/game/item/IItemManager"
15
15
  import type Item from "@wayward/game/game/item/Item";
16
16
  import type ItemManager from "@wayward/game/game/item/ItemManager";
17
17
  import Observer from "@wayward/game/utilities/Observer";
18
+ import type { IEventSubscriberEvents } from "@wayward/utilities/event/EventEmitter";
18
19
  import EventEmitter from "@wayward/utilities/event/EventEmitter";
19
20
  export interface IItemFinderOptions extends Partial<IGetBestItemsOptions> {
20
21
  /**
@@ -24,7 +25,7 @@ export interface IItemFinderOptions extends Partial<IGetBestItemsOptions> {
24
25
  fallback?: ItemFinder;
25
26
  postFilter?(item: Item): boolean;
26
27
  }
27
- export interface IItemFinderEvents {
28
+ export interface IItemFinderEvents extends IEventSubscriberEvents {
28
29
  track(): any;
29
30
  dispose(): any;
30
31
  }
@@ -22,20 +22,20 @@ interface IItemReferenceEvents {
22
22
  clear(): void;
23
23
  }
24
24
  export default class ItemReference extends EventEmitter.Host<IItemReferenceEvents> implements IItemReference, IUnserializedCallback {
25
- static get(item?: Item | IItemReference): ItemReference | undefined;
26
- static item(item?: Item | IItemReference): Item | undefined;
25
+ static create(item?: Item | IItemReference): ItemReference | undefined;
27
26
  event: IEventEmitter<this, IItemReferenceEvents>;
28
27
  private registeredForEvents;
29
28
  islandId: IslandId | undefined;
30
29
  itemId: number | undefined;
31
30
  constructor(item?: Item | IItemReference);
31
+ dispose(): void;
32
32
  raw(): IItemReference;
33
33
  onUnserialized(): void;
34
34
  get isValid(): boolean;
35
35
  get island(): Island | undefined;
36
36
  get item(): Item | undefined;
37
37
  set(reference?: Item | IItemReference): void;
38
- clear(): void;
38
+ private clear;
39
39
  private onItemMovedIsland;
40
40
  private onItemRemove;
41
41
  onStoppingPlay(): void;
@@ -81,6 +81,8 @@ export declare class ActionSlot extends Button implements IRefreshable, ItemSlot
81
81
  protected onHoldingNotDragging(time: number): void;
82
82
  protected onPlay(): void;
83
83
  refresh(slotData?: IActionBarSlotData, reason?: ActionSlotUpdateReason): this;
84
+ private clearLastItem;
85
+ private setLastItem;
84
86
  private onItemTransformed;
85
87
  isUsable(using?: IUsableActionPossibleUsing | undefined, action?: UsableAction<IUsableActionRequirements, IUsableActionDefinition> | undefined): UsableActionUsability;
86
88
  clear(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.14.4-beta.dev.20250218.1",
4
+ "version": "2.14.4-beta.dev.20250219.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",