Added MenuBuilder#onBuild

This commit is contained in:
Auxilor
2022-11-07 16:42:40 +00:00
parent 9ee579f2c4
commit 6baf636e6a
2 changed files with 21 additions and 1 deletions

View File

@@ -195,6 +195,16 @@ public interface MenuBuilder extends PageBuilder {
return this;
}
/**
* Add an action to run on build.
*
* @param action The action.
* @return The builder.
*/
default MenuBuilder onBuild(@NotNull Consumer<Menu> action) {
return this;
}
/**
* Build the menu.
*