Interface MenuBuilder


public interface MenuBuilder
The builder for constructing the chatsetting menu.
  • Method Details

    • open

      void open(FPlayer fPlayer, UUID fTargetUUID)
      Opens the main chatsetting menu for the given player.
      Parameters:
      fPlayer - the player
      fTargetUUID - the UUID of the target player whose settings are being modified
    • openSubMenu

      void openSubMenu(FPlayer fPlayer, UUID fTargetUUID, net.kyori.adventure.text.Component header, Runnable closeConsumer, List<SubMenuItem> items, Function<SubMenuItem, String> getItemMessage, Consumer<SubMenuItem> onSelect, @Nullable String id)
      Opens a submenu within the chatsetting menu.
      Parameters:
      fPlayer - the player
      fTargetUUID - the UUID of the target player whose settings are being modified
      header - the submenu header
      closeConsumer - the callback executed when the submenu is closed
      items - the list of submenu items
      getItemMessage - the function to retrieve the display message for an item
      onSelect - the callback executed when an item is selected
      id - the unique identifier for the submenu, may be null