Class BungeeNoticeDialog<O extends BungeeDialogOpener>
java.lang.Object
io.github.projectunified.unidialog.bungeecord.dialog.BungeeDialog<O,BungeeNoticeDialog<O>>
io.github.projectunified.unidialog.bungeecord.dialog.BungeeNoticeDialog<O>
- Type Parameters:
O- the type of the dialog opener
- All Implemented Interfaces:
Dialog<Object,,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeNoticeDialog<O>> NoticeDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeNoticeDialog<O>>
public class BungeeNoticeDialog<O extends BungeeDialogOpener>
extends BungeeDialog<O,BungeeNoticeDialog<O>>
implements NoticeDialog<Object,BungeeDialogBodyBuilder,BungeeDialogInputBuilder,BungeeDialog<?,?>,BungeeDialogActionBuilder,BungeeNoticeDialog<O>>
The Bungee implementation of the notice dialog
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
Dialog.AfterAction -
Constructor Summary
ConstructorsConstructorDescriptionBungeeNoticeDialog(String defaultNamespace, Function<net.md_5.bungee.api.dialog.Dialog, O> openerFunction) Create a new notice dialog -
Method Summary
Modifier and TypeMethodDescriptionaction(Consumer<BungeeDialogActionBuilder> action) Set the action of the notice dialogprotected net.md_5.bungee.api.dialog.DialogconstructDialog(net.md_5.bungee.api.dialog.DialogBase dialogBase) Construct the Bungee dialog from the given dialog baseMethods inherited from class io.github.projectunified.unidialog.bungeecord.dialog.BungeeDialog
afterAction, body, canCloseWithEscape, externalTitle, externalTitle, getAction, getDialog, input, opener, pause, title, titleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
afterAction, body, body, canCloseWithEscape, externalTitle, input, input, opener, pause, title
-
Constructor Details
-
BungeeNoticeDialog
public BungeeNoticeDialog(String defaultNamespace, Function<net.md_5.bungee.api.dialog.Dialog, O> openerFunction) Create a new notice dialog- Parameters:
defaultNamespace- the default namespace for the dialog actionsopenerFunction- the function to create the dialog opener from the Bungee dialog
-
-
Method Details
-
action
Description copied from interface:NoticeDialogSet the action of the notice dialog- Specified by:
actionin interfaceNoticeDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeNoticeDialog<O extends BungeeDialogOpener>> - Parameters:
action- the action to be performed- Returns:
- the notice dialog itself for method chaining
-
constructDialog
protected net.md_5.bungee.api.dialog.Dialog constructDialog(net.md_5.bungee.api.dialog.DialogBase dialogBase) Description copied from class:BungeeDialogConstruct the Bungee dialog from the given dialog base- Specified by:
constructDialogin classBungeeDialog<O extends BungeeDialogOpener,BungeeNoticeDialog<O extends BungeeDialogOpener>> - Parameters:
dialogBase- the dialog base containing the shared dialog data- Returns:
- the constructed Bungee dialog
-