Interface SGToolbarBuilder

All Known Implementing Classes:
SGDefaultToolbarBuilder

public interface SGToolbarBuilder
An interface for a toolbar button builder.
The toolbar button builder is responsible for rendering the toolbar buttons for an SGMenu. This can be customized to render different pagination items, etc., for a GUI.
  • Method Details

    • buildToolbarButton

      SGButton buildToolbarButton(int slot, int page, SGToolbarButtonType defaultType, SGMenu menu)
      Specifies the toolbar button builder for an SGMenu. This can be customized to render different toolbar buttons for a GUI.
      Parameters:
      slot - The slot being rendered.
      page - The current page of the inventory being rendered.
      defaultType - The default button type of the current slot.
      menu - The inventory the toolbar is being rendered in.
      Returns:
      The button to be rendered for that slot, or null if no button should be rendered.