Hierarchy

  • IItemManagerEvents

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.

    • Optional options: IMoveItemOptions

      Move item options.

    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.

    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.

    Returns any

  • Called when an item is crafted

    Parameters

    • human: default<number>

      The human object

    • item: default

      The item that was crafted

    Returns void

  • Parameters

    Returns any

  • Parameters

    Returns any

Generated using TypeDoc