Skip to content

Commit 758255f

Browse files
Add the new MLB
1 parent 20d1dd2 commit 758255f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package me.flame.menus.menu.layout;
2+
3+
import me.flame.menus.items.MenuItem;
4+
import me.flame.menus.menu.Menu;
5+
import me.flame.menus.menu.PaginatedMenu;
6+
7+
import java.util.Map;
8+
9+
public interface MenuLayoutBuilder {
10+
static MenuLayoutBuilder bind(Map<Character, MenuItem> itemMap) {
11+
return new MenuLayoutBuilderImpl(itemMap);
12+
}
13+
14+
/**
15+
* Add a new row to the menu.
16+
* @param strings the strings to add (can be empty)
17+
* @return the object for chaining
18+
*/
19+
MenuLayoutBuilder row(String string);
20+
21+
Menu createMenu(String title);
22+
23+
PaginatedMenu createPaginated(String title, int pageSize);
24+
}

0 commit comments

Comments
 (0)