Class MenuTitles

java.lang.Object
me.tayebyassine.homestead.gui.helpers.MenuTitles

public final class MenuTitles extends Object
Resolves menu titles from the YAML configuration.
  • Method Details

    • getTitle

      public static String getTitle(String menuKey)
      Resolves a menu title by its configuration key.
      Parameters:
      menuKey - the menu key defined in the menus section of the YAML
      Returns:
      the resolved title string, or the menuKey itself as a fallback
    • getTitle

      public static String getTitle(String menuKey, Placeholder placeholder)