• Trying to register an action with the UI? You may be looking for @Register.usableActions

    Registers a "usable" action placeholder type. This is solely used for generating an ID that can be used in UsableActions. A custom UsableActionTypePlaceholder provides an ID that can be used for icons.

    IE: If a UsableAction definition's icon property is this placeholder ID's name, it will automatically attempt to use the icon at <your mod directory>/static/image/ui/icons/action/mod<your mod name><this registration name>.png.

    Parameters

    • name: string

    Returns (<K, T>(target: T, key: K) => void)

      • <K, T>(target: T, key: K): void
      • Type Parameters

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc