Class WorkbenchUIHandler

Class used to simplify creation of custom workbenches.

Constructors

Methods

  • Deselects current recipe (asynchronously).

    Returns void

  • Refreshes all the recipes in the workbench.

    Returns number

    Amount of recipes displayed.

  • Sets workbench recipes displaying limit.

    Parameters

    • count: number

      count of the recipes to show

    Returns void

    250
    
  • Registers listener to be notified when the workbench starts and completes refreshing.

    Parameters

    • listener: {
          onRefreshCompleted: ((count: number) => void);
          onRefreshStarted: (() => void);
      }

      workbench refresh listener

      • onRefreshCompleted: ((count: number) => void)
          • (count): void
          • Parameters

            • count: number

            Returns void

      • onRefreshStarted: (() => void)
          • (): void
          • Returns void

    Returns void

  • Registers listener to be notified when some recipe is selected.

    Parameters

    Returns void

  • Sets custom workbench prefix.

    Parameters

    • prefix: string

      custom workbench prefix

    Returns void

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.