Hierarchy

  • IUsableActionRequirements

Properties

Methods

Properties

For reference: I hate this.

  • undefined for no item, no type, no item finder
  • true to require an item to be specified, not found
  • IUsableActionItemRequirement for anything else
    • To require that the slot gets an item from a default item finder, include validate: () => true, (it's horrible)
    • To implement a custom item finder, pass it in the finder property
    • To specify that the slot can have no item stuff specified too, include allowNone: true,
      • To specify that the slot requires an item type at minimum, however, include requiresType: true,
    • To force the actions system to pass in an itemQuality in the action using even when an item is provided, include requiresQuality: true,

Methods

  • Replaces the calculated IUsableActionPossibleUsing with a new one, ...or returns false or a Message if it's invalid in some way ...or returns undefined to use the default

    Parameters

    Returns any

Generated using TypeDoc