Interface MenuBuilder
public interface MenuBuilder
The builder for constructing the chatsetting menu.
-
Method Summary
Modifier and TypeMethodDescriptionvoidOpens the main chatsetting menu for the given player.voidopenSubMenu(FPlayer fPlayer, UUID fTargetUUID, net.kyori.adventure.text.Component header, Runnable closeConsumer, List<SubMenuItem> items, Function<SubMenuItem, String> getItemMessage, Consumer<SubMenuItem> onSelect, @Nullable String id) Opens a submenu within the chatsetting menu.
-
Method Details
-
open
-
openSubMenu
void openSubMenu(FPlayer fPlayer, UUID fTargetUUID, net.kyori.adventure.text.Component header, Runnable closeConsumer, List<SubMenuItem> items, Function<SubMenuItem, String> getItemMessage, Consumer<SubMenuItem> onSelect, @Nullable String id) Opens a submenu within the chatsetting menu.- Parameters:
fPlayer- the playerfTargetUUID- the UUID of the target player whose settings are being modifiedheader- the submenu headercloseConsumer- the callback executed when the submenu is closeditems- the list of submenu itemsgetItemMessage- the function to retrieve the display message for an itemonSelect- the callback executed when an item is selectedid- the unique identifier for the submenu, may be null
-