Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to simplify creation of custom workbenches

Hierarchy

  • WorkbenchUIHandler

Index

Constructors

Methods

  • deselectCurrentRecipe(): void
  • refresh(): number
  • Refreshes all the recipes in the workbench

    Returns number

    amount of recipes displayed

  • refreshAsync(): void
  • setMaximumRecipesToShow(count: number): void
  • Sets workbench recipes displaying limit. By default it is 250

    Parameters

    • count: number

      count of the recipes to show

    Returns void

  • setOnRefreshListener(listener: { onRefreshCompleted: any; onRefreshStarted: any }): void
  • Registers listener to be notified when the workbench starts and completes refreshing

    Parameters

    • listener: { onRefreshCompleted: any; onRefreshStarted: any }

      workbench refresh listener

      • onRefreshCompleted:function
        • onRefreshCompleted(count: number): void
      • onRefreshStarted:function
        • onRefreshStarted(): void

    Returns void

  • setOnSelectionListener(listener: { onRecipeSelected: any }): void
  • setPrefix(prefix: string): void
  • Sets custom workbench prefix

    Parameters

    • prefix: string

      custom workbench prefix

    Returns void

Generated using TypeDoc