Class DialogList

java.lang.Object
com.github.darksoulq.abyssallib.world.dialog.BaseDialog<DialogList>
com.github.darksoulq.abyssallib.world.dialog.DialogList

public class DialogList extends BaseDialog<DialogList>
A dialog that displays a list of selectable child dialogs.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
    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 Type
    Method
    Description
    io.papermc.paper.dialog.Dialog
    Builds the DialogList into a Paper Dialog.

    Methods inherited from class BaseDialog

    after, body, closeWithEscape, external, input

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - The RegistrySet of 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 - The RegistrySet of 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 Paper Dialog.
      Specified by:
      build in class BaseDialog<DialogList>
      Returns:
      The configured Dialog instance.