Class ServerLinks
java.lang.Object
com.github.darksoulq.abyssallib.world.dialog.BaseDialog<ServerLinks>
com.github.darksoulq.abyssallib.world.dialog.ServerLinks
A dialog implementation specifically for displaying server link buttons.
-
Constructor Summary
ConstructorsConstructorDescriptionServerLinks(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 TypeMethodDescriptionio.papermc.paper.dialog.Dialogbuild()Builds the ServerLinks dialog into a PaperDialog.Methods inherited from class BaseDialog
after, body, closeWithEscape, external, input
-
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 primaryActionButton.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 PaperDialog.- Specified by:
buildin classBaseDialog<ServerLinks>- Returns:
- The configured Dialog instance.
-