Package org.teleight.teleightbots.menu
Class MenuBuilder.MenuBuilderImpl
java.lang.Object
org.teleight.teleightbots.menu.MenuBuilder.MenuBuilderImpl
- All Implemented Interfaces:
MenuBuilder
- Enclosing interface:
MenuBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.teleight.teleightbots.menu.MenuBuilder
MenuBuilder.MenuBuilderImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull MenucreateMenu(@Nullable String name) Creates a Menu with a given name and adds it to the list of all menus.
-
Constructor Details
-
MenuBuilderImpl
public MenuBuilderImpl()
-
-
Method Details
-
createMenu
Creates a Menu with a given name and adds it to the list of all menus.- Specified by:
createMenuin interfaceMenuBuilder- Parameters:
name- The name of the Menu to create.- Returns:
- The created Menu.
-
getAllMenus
- Returns:
- An unmodifiable list of all created menus.
-