Class MenuBuilder.MenuBuilderImpl

java.lang.Object
org.teleight.teleightbots.menu.MenuBuilder.MenuBuilderImpl
All Implemented Interfaces:
MenuBuilder
Enclosing interface:
MenuBuilder

public static class MenuBuilder.MenuBuilderImpl extends Object implements MenuBuilder
  • Constructor Details

    • MenuBuilderImpl

      public MenuBuilderImpl()
  • Method Details

    • createMenu

      @NotNull public @NotNull Menu createMenu(@Nullable @Nullable String name)
      Creates a Menu with a given name and adds it to the list of all menus.
      Specified by:
      createMenu in interface MenuBuilder
      Parameters:
      name - The name of the Menu to create.
      Returns:
      The created Menu.
    • getAllMenus

      @NotNull public @NotNull @Unmodifiable List<MenuImpl> getAllMenus()
      Returns:
      An unmodifiable list of all created menus.