Hierarchy

Methods

  • Called when items are added to a container.

    Parameters

    • items: default[]

      The items.

    • container: IContainer

      The container object the items were added to. This container might be inventory or a container within the inventory.

    • index: number

      The position the items were inserted at

    • Optional options: IMoveItemOptions

      Move item options.

    • Optional mover: default<unknown, number, NPC | Player>

    Returns any

  • Called when items are removed from a container.

    Parameters

    • items: default[]

      The items.

    • container: undefined | IContainer

      The container object the item was removed from.

    • containerTile: undefined | default

      The tile of that container when the remove occurred.

    • Optional mover: default<unknown, number, NPC | Player>

    Returns any

  • Called when items are moved from one container to another.

    Parameters

    • items: default[]

      The items.

    • containerFrom: undefined | IContainer

      The container object the items were moved from. This container might be inventory or a container within the inventory.

    • containerFromTile: undefined | default

      The tile of containerFrom when the update occurred.

    • containerTo: IContainer

      The container object the items were moved to. This container might be inventory or a container within the inventory.

    • Optional mover: default<unknown, number, NPC | Player>

    Returns any

  • Called when the container order is updated.

    Parameters

    Returns any

  • Called when an item is crafted

    Parameters

    Returns void

  • Parameters

    Returns any

  • Parameters

    Returns any

Generated using TypeDoc