Class Notice
java.lang.Object
com.github.darksoulq.abyssallib.world.dialog.BaseDialog<Notice>
com.github.darksoulq.abyssallib.world.dialog.Notice
A standard notice dialog used to display information with an optional primary action button.
-
Constructor Summary
ConstructorsConstructorDescriptionNotice(net.kyori.adventure.text.Component title) Creates a notice with a title and no specific action button.Notice(net.kyori.adventure.text.Component title, io.papermc.paper.registry.data.dialog.ActionButton action) Creates a notice with a title and a primary action button. -
Method Summary
Modifier and TypeMethodDescriptionio.papermc.paper.dialog.Dialogbuild()Builds the Notice into a PaperDialog.Methods inherited from class BaseDialog
after, body, closeWithEscape, external, input
-
Constructor Details
-
Notice
public Notice(net.kyori.adventure.text.Component title) Creates a notice with a title and no specific action button.- Parameters:
title- TheComponentto display as the title.
-
Notice
public Notice(net.kyori.adventure.text.Component title, io.papermc.paper.registry.data.dialog.ActionButton action) Creates a notice with a title and a primary action button.- Parameters:
title- TheComponentto display as the title.action- TheActionButtonto associate with this notice.
-
-
Method Details
-
build
public io.papermc.paper.dialog.Dialog build()Builds the Notice into a PaperDialog.- Specified by:
buildin classBaseDialog<Notice>- Returns:
- The configured Dialog instance.
-