Class PaperServerLinksDialog
java.lang.Object
io.github.projectunified.unidialog.paper.dialog.PaperDialog<PaperServerLinksDialog>
io.github.projectunified.unidialog.paper.dialog.PaperServerLinksDialog
- All Implemented Interfaces:
AdventureDialog<org.bukkit.inventory.ItemStack,
,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperServerLinksDialog> AdventureSupport
,Dialog<org.bukkit.inventory.ItemStack,
,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperServerLinksDialog> ServerLinksDialog<org.bukkit.inventory.ItemStack,
PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperServerLinksDialog>
public class PaperServerLinksDialog
extends PaperDialog<PaperServerLinksDialog>
implements ServerLinksDialog<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder,PaperDialogInputBuilder,PaperDialog<?>,PaperDialogActionBuilder,PaperServerLinksDialog>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
Dialog.AfterAction
-
Field Summary
Fields inherited from interface io.github.projectunified.unidialog.core.dialog.ServerLinksDialog
DEFAULT_BUTTON_WIDTH, DEFAULT_COLUMNS
-
Constructor Summary
ConstructorsConstructorDescriptionPaperServerLinksDialog
(String defaultNamespace, Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Modifier and TypeMethodDescriptionbuttonWidth
(int buttonWidth) Set the width of the buttons in the dialogcolumns
(int columns) Set the number of columns for the dialogexitAction
(@Nullable Consumer<PaperDialogActionBuilder> action) Set the exit action for the dialogprotected io.papermc.paper.registry.data.dialog.type.DialogType
Methods inherited from class io.github.projectunified.unidialog.paper.dialog.PaperDialog
afterAction, body, canCloseWithEscape, externalTitle, getAction, getComponentDeserializer, getDialog, getDialogBuilder, input, opener, pause, register, register, register, register, register, register, title
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.unidialog.adventure.dialog.AdventureDialog
externalTitle, title
Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize
Methods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
afterAction, body, body, canCloseWithEscape, input, input, opener, pause
-
Constructor Details
-
PaperServerLinksDialog
-
-
Method Details
-
exitAction
public PaperServerLinksDialog exitAction(@Nullable @Nullable Consumer<PaperDialogActionBuilder> action) Description copied from interface:ServerLinksDialog
Set the exit action for the dialog- Specified by:
exitAction
in interfaceServerLinksDialog<org.bukkit.inventory.ItemStack,
PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperServerLinksDialog> - Parameters:
action
- the action to be performed when exiting the dialog- Returns:
- the server links dialog itself for method chaining
-
columns
Description copied from interface:ServerLinksDialog
Set the number of columns for the dialog- Specified by:
columns
in interfaceServerLinksDialog<org.bukkit.inventory.ItemStack,
PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperServerLinksDialog> - Parameters:
columns
- the number of columns to set- Returns:
- the server links dialog itself for method chaining
-
buttonWidth
Description copied from interface:ServerLinksDialog
Set the width of the buttons in the dialog- Specified by:
buttonWidth
in interfaceServerLinksDialog<org.bukkit.inventory.ItemStack,
PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperServerLinksDialog> - Parameters:
buttonWidth
- the width of the buttons- Returns:
- the server links dialog itself for method chaining
-
getDialogType
protected io.papermc.paper.registry.data.dialog.type.DialogType getDialogType()- Specified by:
getDialogType
in classPaperDialog<PaperServerLinksDialog>
-