Class Notice

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

public class Notice extends BaseDialog<Notice>
A standard notice dialog used to display information with an optional primary action button.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Notice(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 Type
    Method
    Description
    io.papermc.paper.dialog.Dialog
    Builds the Notice 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

    • Notice

      public Notice(net.kyori.adventure.text.Component title)
      Creates a notice with a title and no specific action button.
      Parameters:
      title - The Component to 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 - The Component to display as the title.
      action - The ActionButton to associate with this notice.
  • Method Details

    • build

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