Class Confirmation

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

public class Confirmation extends BaseDialog<Confirmation>
A dialog implementation representing a binary choice, typically used for confirmations.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Confirmation(net.kyori.adventure.text.Component title, io.papermc.paper.registry.data.dialog.ActionButton yes, io.papermc.paper.registry.data.dialog.ActionButton no)
    Constructs a new Confirmation dialog.
  • Method Summary

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

    • Confirmation

      public Confirmation(net.kyori.adventure.text.Component title, io.papermc.paper.registry.data.dialog.ActionButton yes, io.papermc.paper.registry.data.dialog.ActionButton no)
      Constructs a new Confirmation dialog.
      Parameters:
      title - The Component to display as the title.
      yes - The ActionButton for the confirm action.
      no - The ActionButton for the cancel action.
  • Method Details

    • build

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