Class DialogList
java.lang.Object
com.github.darksoulq.abyssallib.world.dialog.BaseDialog<DialogList>
com.github.darksoulq.abyssallib.world.dialog.DialogList
A dialog that displays a list of selectable child dialogs.
-
Constructor Summary
ConstructorsConstructorDescriptionDialogList(net.kyori.adventure.text.Component title, io.papermc.paper.registry.set.RegistrySet<io.papermc.paper.dialog.Dialog> dialogs) Constructs a basic DialogList with default layout settings.DialogList(net.kyori.adventure.text.Component title, io.papermc.paper.registry.set.RegistrySet<io.papermc.paper.dialog.Dialog> dialogs, io.papermc.paper.registry.data.dialog.ActionButton exitAction, Integer columns, Integer width) Constructs a DialogList with full layout customization. -
Method Summary
Modifier and TypeMethodDescriptionio.papermc.paper.dialog.Dialogbuild()Builds the DialogList into a PaperDialog.Methods inherited from class BaseDialog
after, body, closeWithEscape, external, input
-
Constructor Details
-
DialogList
public DialogList(net.kyori.adventure.text.Component title, io.papermc.paper.registry.set.RegistrySet<io.papermc.paper.dialog.Dialog> dialogs) Constructs a basic DialogList with default layout settings.- Parameters:
title- The title of the menu.dialogs- TheRegistrySetof dialogs to list.
-
DialogList
public DialogList(net.kyori.adventure.text.Component title, io.papermc.paper.registry.set.RegistrySet<io.papermc.paper.dialog.Dialog> dialogs, io.papermc.paper.registry.data.dialog.ActionButton exitAction, Integer columns, Integer width) Constructs a DialogList with full layout customization.- Parameters:
title- The title of the menu.dialogs- TheRegistrySetof dialogs to list.exitAction- The button used to exit the menu.columns- The grid column count.width- The width of individual buttons.
-
-
Method Details
-
build
public io.papermc.paper.dialog.Dialog build()Builds the DialogList into a PaperDialog.- Specified by:
buildin classBaseDialog<DialogList>- Returns:
- The configured Dialog instance.
-