Class DialogContent

java.lang.Object
com.github.darksoulq.abyssallib.world.dialog.DialogContent

public class DialogContent extends Object
Static factory for generating inputs, buttons, and body content for Dialogs.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.papermc.paper.registry.data.dialog.input.BooleanDialogInput
    bool(String name, net.kyori.adventure.text.Component label)
    Creates a boolean (true/false) toggle input.
    static io.papermc.paper.registry.data.dialog.input.BooleanDialogInput
    bool(String name, net.kyori.adventure.text.Component label, boolean initial)
    Creates a boolean toggle with an initial state.
    static io.papermc.paper.registry.data.dialog.input.BooleanDialogInput
    bool(String name, net.kyori.adventure.text.Component label, String trueValue, String falseValue)
    Creates a boolean toggle with custom value labels.
    static io.papermc.paper.registry.data.dialog.input.BooleanDialogInput
    bool(String name, net.kyori.adventure.text.Component label, String trueValue, String falseValue, boolean initial)
    Creates a boolean toggle with custom labels and initial state.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action)
    Creates a callback button with width.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, int uses)
    Creates a callback button with width and usage limits.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime)
    Creates a callback button with width and lifetime.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, int width, net.kyori.adventure.key.Key actionId)
    Creates an action button with specific width.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, int width, net.kyori.adventure.key.Key actionId, net.kyori.adventure.nbt.api.BinaryTagHolder additions)
    Creates an action button with width and NBT data.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action)
    Creates a button with a direct functional callback.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, int uses)
    Creates a callback button with limited uses.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime)
    Creates a callback button with a limited lifetime.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.key.Key actionId)
    Creates an action button linked to a custom click ID.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.key.Key actionId, net.kyori.adventure.nbt.api.BinaryTagHolder additions)
    Creates an action button with custom NBT data.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action)
    Creates a callback button with tooltip and width.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, int uses)
    Creates a callback button with tooltip, width, and usage limits.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime)
    Creates a callback button with tooltip, width, and lifetime.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime, int uses)
    Creates a fully specified button linked to a functional callback.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, net.kyori.adventure.key.Key actionId)
    Creates an action button with tooltip and width.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, net.kyori.adventure.key.Key actionId, net.kyori.adventure.nbt.api.BinaryTagHolder additions)
    Creates a fully specified button linked to a Key action.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action)
    Creates a callback button with a tooltip.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, int uses)
    Creates a callback button with tooltip and limited uses.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime)
    Creates a callback button with tooltip and lifetime.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime, int uses)
    Creates a callback button with tooltip, lifetime, and usage limits.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, net.kyori.adventure.key.Key actionId)
    Creates an action button with a tooltip.
    static io.papermc.paper.registry.data.dialog.ActionButton
    button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, net.kyori.adventure.key.Key actionId, net.kyori.adventure.nbt.api.BinaryTagHolder additions)
    Creates an action button with tooltip and NBT additions.
    static io.papermc.paper.registry.data.dialog.body.ItemDialogBody
    item(org.bukkit.inventory.ItemStack stack)
    Displays an item stack within the dialog body.
    static io.papermc.paper.registry.data.dialog.body.ItemDialogBody
    item(org.bukkit.inventory.ItemStack stack, boolean showDeco, boolean showTooltips)
    Displays an item stack with toggles for decorations and tooltips.
    static io.papermc.paper.registry.data.dialog.body.ItemDialogBody
    item(org.bukkit.inventory.ItemStack stack, int width, int height)
    Displays an item stack with specific dimensions.
    static io.papermc.paper.registry.data.dialog.body.ItemDialogBody
    item(org.bukkit.inventory.ItemStack stack, io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody description)
    Displays an item stack with a text description.
    static io.papermc.paper.registry.data.dialog.body.ItemDialogBody
    item(org.bukkit.inventory.ItemStack stack, io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody description, boolean showDeco, boolean showTooltips)
    Displays an item stack with description and toggle settings.
    static io.papermc.paper.registry.data.dialog.body.ItemDialogBody
    item(org.bukkit.inventory.ItemStack stack, io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody description, int width, int height)
    Displays an item stack with description and dimensions.
    static io.papermc.paper.registry.data.dialog.body.ItemDialogBody
    item(org.bukkit.inventory.ItemStack stack, io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody description, int width, int height, boolean showDeco, boolean showTooltips)
    Fully specified factory for item body components.
    static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput
    range(String name, net.kyori.adventure.text.Component label, float min, float max)
    Creates a number range (slider) input.
    static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput
    range(String name, net.kyori.adventure.text.Component label, int width, float min, float max)
    Creates a number range input with width.
    static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput
    range(String name, net.kyori.adventure.text.Component label, int width, float min, float max, float step)
    Creates a number range input with width and step size.
    static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput
    range(String name, net.kyori.adventure.text.Component label, int width, float min, float max, float initial, float step)
    Creates a number range input with width, initial value, and step.
    static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput
    range(String name, net.kyori.adventure.text.Component label, String labelFormat, float min, float max)
    Creates a number range input with custom label formatting.
    static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput
    range(String name, net.kyori.adventure.text.Component label, String labelFormat, int width, float min, float max)
    Creates a number range input with formatting and width.
    static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput
    range(String name, net.kyori.adventure.text.Component label, String labelFormat, int width, float min, float max, float step)
    Creates a number range input with formatting, width, and step.
    static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput
    range(String name, net.kyori.adventure.text.Component label, String labelFormat, int width, float min, float max, float initial, float step)
    Creates a fully specified number range input.
    static io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput
    single(String name, net.kyori.adventure.text.Component label, List<io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput.OptionEntry> entries)
    Creates a single option selection input.
    static io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput
    single(String name, net.kyori.adventure.text.Component label, List<io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput.OptionEntry> entries, boolean labelVisible)
    Creates a single option selection input with label visibility toggle.
    static io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput
    single(String name, net.kyori.adventure.text.Component label, List<io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput.OptionEntry> entries, boolean labelVisible, int width)
    Creates a single option selection input with specific width and label visibility.
    static io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput
    single(String name, net.kyori.adventure.text.Component label, List<io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput.OptionEntry> entries, int width)
    Creates a single option selection input with a specific width.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label)
    Creates a basic text input field.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, boolean labelVisible)
    Creates a text input field with label visibility toggle.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width)
    Creates a text input field with width and label visibility.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width, int maxLength)
    Creates a text input field with visibility, width, and character limit.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width, String initial)
    Creates a text input field with visibility, width, and initial value.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width, String initial, int maxLength)
    Creates a text input field with visibility, width, initial value, and character limit.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width, String initial, int maxLength, int height)
    Creates a multiline text input field.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width, String initial, int maxLength, Integer maxLines, int height)
    Creates a highly specific multiline text input field.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, String initial)
    Creates a text input field with visibility toggle and initial value.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, int width, int maxLength)
    Creates a text input field with width and character limit.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, int width, String initial)
    Creates a text input field with width and initial value.
    static io.papermc.paper.registry.data.dialog.input.TextDialogInput
    text(String name, net.kyori.adventure.text.Component label, String initial)
    Creates a text input field with an initial value.
    static io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody
    text(net.kyori.adventure.text.Component text)
    Creates a simple text message for the dialog body.
    static io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody
    text(net.kyori.adventure.text.Component text, int width)
    Creates a text message with specific visual width.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DialogContent

      public DialogContent()
  • Method Details

    • single

      public static io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput single(String name, net.kyori.adventure.text.Component label, List<io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput.OptionEntry> entries)
      Creates a single option selection input.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      entries - The list of possible options.
      Returns:
      A configured SingleOptionDialogInput.
    • single

      public static io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput single(String name, net.kyori.adventure.text.Component label, List<io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput.OptionEntry> entries, boolean labelVisible)
      Creates a single option selection input with label visibility toggle.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      entries - The list of possible options.
      labelVisible - Whether the label is shown to the player.
      Returns:
      A configured SingleOptionDialogInput.
    • single

      public static io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput single(String name, net.kyori.adventure.text.Component label, List<io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput.OptionEntry> entries, int width)
      Creates a single option selection input with a specific width.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      entries - The list of possible options.
      width - The width of the input element.
      Returns:
      A configured SingleOptionDialogInput.
    • single

      public static io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput single(String name, net.kyori.adventure.text.Component label, List<io.papermc.paper.registry.data.dialog.input.SingleOptionDialogInput.OptionEntry> entries, boolean labelVisible, int width)
      Creates a single option selection input with specific width and label visibility.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      entries - The list of possible options.
      labelVisible - Whether the label is shown.
      width - The width of the input element.
      Returns:
      A configured SingleOptionDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label)
      Creates a basic text input field.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, boolean labelVisible)
      Creates a text input field with label visibility toggle.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      labelVisible - Whether the label is shown.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width)
      Creates a text input field with width and label visibility.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      labelVisible - Whether the label is shown.
      width - The width of the text field.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, String initial)
      Creates a text input field with an initial value.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      initial - The initial text in the field.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, String initial)
      Creates a text input field with visibility toggle and initial value.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      labelVisible - Whether the label is shown.
      initial - The initial text in the field.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, int width, String initial)
      Creates a text input field with width and initial value.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      width - The width of the text field.
      initial - The initial text in the field.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width, String initial)
      Creates a text input field with visibility, width, and initial value.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      labelVisible - Whether the label is shown.
      width - The width of the text field.
      initial - The initial text in the field.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, int width, int maxLength)
      Creates a text input field with width and character limit.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      width - The width of the text field.
      maxLength - The maximum allowed characters.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width, int maxLength)
      Creates a text input field with visibility, width, and character limit.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      labelVisible - Whether the label is shown.
      width - The width of the text field.
      maxLength - The maximum allowed characters.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width, String initial, int maxLength)
      Creates a text input field with visibility, width, initial value, and character limit.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      labelVisible - Whether the label is shown.
      width - The width of the text field.
      initial - The initial text.
      maxLength - The maximum allowed characters.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width, String initial, int maxLength, int height)
      Creates a multiline text input field.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      labelVisible - Whether the label is shown.
      width - The width of the field.
      initial - The initial text.
      maxLength - The maximum characters.
      height - The visual height of the field.
      Returns:
      A configured TextDialogInput.
    • text

      public static io.papermc.paper.registry.data.dialog.input.TextDialogInput text(String name, net.kyori.adventure.text.Component label, boolean labelVisible, int width, String initial, int maxLength, Integer maxLines, int height)
      Creates a highly specific multiline text input field.
      Parameters:
      name - The internal name of the input.
      label - The display label.
      labelVisible - Whether the label is shown.
      width - The width of the field.
      initial - The initial text.
      maxLength - The maximum characters.
      maxLines - Optional limit on the number of lines.
      height - The visual height of the field.
      Returns:
      A configured TextDialogInput.
    • bool

      public static io.papermc.paper.registry.data.dialog.input.BooleanDialogInput bool(String name, net.kyori.adventure.text.Component label)
      Creates a boolean (true/false) toggle input.
      Parameters:
      name - The internal name.
      label - The display label.
      Returns:
      A configured BooleanDialogInput.
    • bool

      public static io.papermc.paper.registry.data.dialog.input.BooleanDialogInput bool(String name, net.kyori.adventure.text.Component label, String trueValue, String falseValue)
      Creates a boolean toggle with custom value labels.
      Parameters:
      name - The internal name.
      label - The display label.
      trueValue - The text to show when true.
      falseValue - The text to show when false.
      Returns:
      A configured BooleanDialogInput.
    • bool

      public static io.papermc.paper.registry.data.dialog.input.BooleanDialogInput bool(String name, net.kyori.adventure.text.Component label, boolean initial)
      Creates a boolean toggle with an initial state.
      Parameters:
      name - The internal name.
      label - The display label.
      initial - The starting state.
      Returns:
      A configured BooleanDialogInput.
    • bool

      public static io.papermc.paper.registry.data.dialog.input.BooleanDialogInput bool(String name, net.kyori.adventure.text.Component label, String trueValue, String falseValue, boolean initial)
      Creates a boolean toggle with custom labels and initial state.
      Parameters:
      name - The internal name.
      label - The display label.
      trueValue - Text for true.
      falseValue - Text for false.
      initial - Starting state.
      Returns:
      A configured BooleanDialogInput.
    • range

      public static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput range(String name, net.kyori.adventure.text.Component label, float min, float max)
      Creates a number range (slider) input.
      Parameters:
      name - The internal name.
      label - The display label.
      min - Minimum value.
      max - Maximum value.
      Returns:
      A configured NumberRangeDialogInput.
    • range

      public static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput range(String name, net.kyori.adventure.text.Component label, int width, float min, float max)
      Creates a number range input with width.
      Parameters:
      name - The internal name.
      label - The display label.
      width - Input width.
      min - Minimum value.
      max - Maximum value.
      Returns:
      A configured NumberRangeDialogInput.
    • range

      public static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput range(String name, net.kyori.adventure.text.Component label, int width, float min, float max, float step)
      Creates a number range input with width and step size.
      Parameters:
      name - The internal name.
      label - The display label.
      width - Input width.
      min - Minimum value.
      max - Maximum value.
      step - The increment size.
      Returns:
      A configured NumberRangeDialogInput.
    • range

      public static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput range(String name, net.kyori.adventure.text.Component label, int width, float min, float max, float initial, float step)
      Creates a number range input with width, initial value, and step.
      Parameters:
      name - The internal name.
      label - The display label.
      width - Input width.
      min - Minimum value.
      max - Maximum value.
      initial - Starting value.
      step - Increment size.
      Returns:
      A configured NumberRangeDialogInput.
    • range

      public static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput range(String name, net.kyori.adventure.text.Component label, String labelFormat, float min, float max)
      Creates a number range input with custom label formatting.
      Parameters:
      name - The internal name.
      label - The display label.
      labelFormat - The printf-style format string for values.
      min - Min value.
      max - Max value.
      Returns:
      A configured NumberRangeDialogInput.
    • range

      public static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput range(String name, net.kyori.adventure.text.Component label, String labelFormat, int width, float min, float max)
      Creates a number range input with formatting and width.
      Parameters:
      name - The internal name.
      label - The display label.
      labelFormat - The format string.
      width - Input width.
      min - Min value.
      max - Max value.
      Returns:
      A configured NumberRangeDialogInput.
    • range

      public static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput range(String name, net.kyori.adventure.text.Component label, String labelFormat, int width, float min, float max, float step)
      Creates a number range input with formatting, width, and step.
      Parameters:
      name - The internal name.
      label - The display label.
      labelFormat - The format string.
      width - Input width.
      min - Min value.
      max - Max value.
      step - Increment size.
      Returns:
      A configured NumberRangeDialogInput.
    • range

      public static io.papermc.paper.registry.data.dialog.input.NumberRangeDialogInput range(String name, net.kyori.adventure.text.Component label, String labelFormat, int width, float min, float max, float initial, float step)
      Creates a fully specified number range input.
      Parameters:
      name - The internal name.
      label - The display label.
      labelFormat - The format string.
      width - Input width.
      min - Min value.
      max - Max value.
      initial - Initial value.
      step - Increment size.
      Returns:
      A configured NumberRangeDialogInput.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.key.Key actionId)
      Creates an action button linked to a custom click ID.
      Parameters:
      label - The button text.
      actionId - The Key identifying the action.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.key.Key actionId, net.kyori.adventure.nbt.api.BinaryTagHolder additions)
      Creates an action button with custom NBT data.
      Parameters:
      label - The button text.
      actionId - The action Key.
      additions - Extra NBT data.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, net.kyori.adventure.key.Key actionId)
      Creates an action button with a tooltip.
      Parameters:
      label - The button text.
      tooltip - The hover tooltip.
      actionId - The action Key.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, net.kyori.adventure.key.Key actionId, net.kyori.adventure.nbt.api.BinaryTagHolder additions)
      Creates an action button with tooltip and NBT additions.
      Parameters:
      label - The button text.
      tooltip - The tooltip.
      actionId - The action Key.
      additions - Extra NBT data.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, int width, net.kyori.adventure.key.Key actionId)
      Creates an action button with specific width.
      Parameters:
      label - The button text.
      width - Button width.
      actionId - The action Key.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, int width, net.kyori.adventure.key.Key actionId, net.kyori.adventure.nbt.api.BinaryTagHolder additions)
      Creates an action button with width and NBT data.
      Parameters:
      label - The button text.
      width - Button width.
      actionId - The action Key.
      additions - Extra NBT data.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, net.kyori.adventure.key.Key actionId)
      Creates an action button with tooltip and width.
      Parameters:
      label - The button text.
      tooltip - The tooltip.
      width - Button width.
      actionId - The action Key.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, net.kyori.adventure.key.Key actionId, net.kyori.adventure.nbt.api.BinaryTagHolder additions)
      Creates a fully specified button linked to a Key action.
      Parameters:
      label - Button text.
      tooltip - Tooltip text.
      width - Visual width.
      actionId - Action Key.
      additions - Extra NBT data.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action)
      Creates a button with a direct functional callback.
      Parameters:
      label - Button text.
      action - The callback code to run on click.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime)
      Creates a callback button with a limited lifetime.
      Parameters:
      label - Button text.
      action - Callback code.
      lifetime - How long the callback remains valid.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, int uses)
      Creates a callback button with limited uses.
      Parameters:
      label - Button text.
      action - Callback code.
      uses - Number of times the button can be clicked.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action)
      Creates a callback button with a tooltip.
      Parameters:
      label - Button text.
      tooltip - Tooltip text.
      action - Callback code.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime)
      Creates a callback button with tooltip and lifetime.
      Parameters:
      label - Button text.
      tooltip - Tooltip text.
      action - Callback code.
      lifetime - Expiration duration.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, int uses)
      Creates a callback button with tooltip and limited uses.
      Parameters:
      label - Button text.
      tooltip - Tooltip text.
      action - Callback code.
      uses - Max usage count.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime, int uses)
      Creates a callback button with tooltip, lifetime, and usage limits.
      Parameters:
      label - Button text.
      tooltip - Tooltip text.
      action - Callback code.
      lifetime - Expiration duration.
      uses - Max usage count.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action)
      Creates a callback button with width.
      Parameters:
      label - Button text.
      width - Visual width.
      action - Callback code.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime)
      Creates a callback button with width and lifetime.
      Parameters:
      label - Button text.
      width - Visual width.
      action - Callback code.
      lifetime - Expiration duration.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, int uses)
      Creates a callback button with width and usage limits.
      Parameters:
      label - Button text.
      width - Visual width.
      action - Callback code.
      uses - Max usage count.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action)
      Creates a callback button with tooltip and width.
      Parameters:
      label - Button text.
      tooltip - Tooltip text.
      width - Visual width.
      action - Callback code.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime)
      Creates a callback button with tooltip, width, and lifetime.
      Parameters:
      label - Button text.
      tooltip - Tooltip text.
      width - Visual width.
      action - Callback code.
      lifetime - Expiration duration.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, int uses)
      Creates a callback button with tooltip, width, and usage limits.
      Parameters:
      label - Button text.
      tooltip - Tooltip text.
      width - Visual width.
      action - Callback code.
      uses - Max usage count.
      Returns:
      A configured ActionButton.
    • button

      public static io.papermc.paper.registry.data.dialog.ActionButton button(net.kyori.adventure.text.Component label, net.kyori.adventure.text.Component tooltip, int width, io.papermc.paper.registry.data.dialog.action.DialogActionCallback action, TemporalAmount lifetime, int uses)
      Creates a fully specified button linked to a functional callback.
      Parameters:
      label - Button text.
      tooltip - Tooltip text.
      width - Visual width.
      action - Callback code.
      lifetime - Expiration duration.
      uses - Max usage count.
      Returns:
      A configured ActionButton.
    • item

      public static io.papermc.paper.registry.data.dialog.body.ItemDialogBody item(org.bukkit.inventory.ItemStack stack)
      Displays an item stack within the dialog body.
      Parameters:
      stack - The ItemStack to display.
      Returns:
      A configured ItemDialogBody.
    • item

      public static io.papermc.paper.registry.data.dialog.body.ItemDialogBody item(org.bukkit.inventory.ItemStack stack, io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody description)
      Displays an item stack with a text description.
      Parameters:
      stack - The item.
      description - The text description.
      Returns:
      A configured ItemDialogBody.
    • item

      public static io.papermc.paper.registry.data.dialog.body.ItemDialogBody item(org.bukkit.inventory.ItemStack stack, int width, int height)
      Displays an item stack with specific dimensions.
      Parameters:
      stack - The item.
      width - Icon width.
      height - Icon height.
      Returns:
      A configured ItemDialogBody.
    • item

      public static io.papermc.paper.registry.data.dialog.body.ItemDialogBody item(org.bukkit.inventory.ItemStack stack, io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody description, int width, int height)
      Displays an item stack with description and dimensions.
      Parameters:
      stack - The item.
      description - Text description.
      width - Icon width.
      height - Icon height.
      Returns:
      A configured ItemDialogBody.
    • item

      public static io.papermc.paper.registry.data.dialog.body.ItemDialogBody item(org.bukkit.inventory.ItemStack stack, boolean showDeco, boolean showTooltips)
      Displays an item stack with toggles for decorations and tooltips.
      Parameters:
      stack - The item.
      showDeco - Whether to show stack size/enchants.
      showTooltips - Whether to show the vanilla tooltip on hover.
      Returns:
      A configured ItemDialogBody.
    • item

      public static io.papermc.paper.registry.data.dialog.body.ItemDialogBody item(org.bukkit.inventory.ItemStack stack, io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody description, boolean showDeco, boolean showTooltips)
      Displays an item stack with description and toggle settings.
      Parameters:
      stack - The item.
      description - Text description.
      showDeco - Decoration toggle.
      showTooltips - Tooltip toggle.
      Returns:
      A configured ItemDialogBody.
    • item

      public static io.papermc.paper.registry.data.dialog.body.ItemDialogBody item(org.bukkit.inventory.ItemStack stack, io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody description, int width, int height, boolean showDeco, boolean showTooltips)
      Fully specified factory for item body components.
      Parameters:
      stack - The item stack.
      description - Optional text description.
      width - Visual width.
      height - Visual height.
      showDeco - Show stack decorations.
      showTooltips - Show item tooltips.
      Returns:
      A configured ItemDialogBody.
    • text

      public static io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody text(net.kyori.adventure.text.Component text)
      Creates a simple text message for the dialog body.
      Parameters:
      text - The Component to display.
      Returns:
      A configured PlainMessageDialogBody.
    • text

      public static io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody text(net.kyori.adventure.text.Component text, int width)
      Creates a text message with specific visual width.
      Parameters:
      text - The component.
      width - The width.
      Returns:
      A configured PlainMessageDialogBody.