Class ServerLinks

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

public class ServerLinks extends BaseDialog<ServerLinks>
A dialog implementation specifically for displaying server link buttons.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServerLinks(net.kyori.adventure.text.Component title, int columns, int buttonWidth)
    Constructs a ServerLinks dialog with basic parameters.
    ServerLinks(net.kyori.adventure.text.Component title, io.papermc.paper.registry.data.dialog.ActionButton action, int columns, int buttonWidth)
    Constructs a ServerLinks dialog with a primary action button and layout settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.papermc.paper.dialog.Dialog
    Builds the ServerLinks dialog 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

    • ServerLinks

      public ServerLinks(net.kyori.adventure.text.Component title, int columns, int buttonWidth)
      Constructs a ServerLinks dialog with basic parameters.
      Parameters:
      title - The title of the menu.
      columns - The grid column count.
      buttonWidth - The width of buttons in the grid.
    • ServerLinks

      public ServerLinks(net.kyori.adventure.text.Component title, io.papermc.paper.registry.data.dialog.ActionButton action, int columns, int buttonWidth)
      Constructs a ServerLinks dialog with a primary action button and layout settings.
      Parameters:
      title - The title of the menu.
      action - The primary ActionButton.
      columns - The grid column count.
      buttonWidth - The width of buttons in the grid.
  • Method Details

    • build

      public io.papermc.paper.dialog.Dialog build()
      Builds the ServerLinks dialog into a Paper Dialog.
      Specified by:
      build in class BaseDialog<ServerLinks>
      Returns:
      The configured Dialog instance.