Package de.Keyle.MyPet.api.dialog
package de.Keyle.MyPet.api.dialog
Text and yes/no prompts shown to a player.
DialogService opens a prompt using whichever transport the server supports —
an anvil rename, a chat conversation, or a chest-menu confirm — so callers do not have
to care which one is available. Prompts are described by the immutable
TextPromptSpec and ConfirmPromptSpec records.
-
ClassDescriptionParameters for a yes/no confirm prompt opened via
DialogService.promptConfirm(org.bukkit.entity.Player, de.Keyle.MyPet.api.dialog.ConfirmPromptSpec, java.lang.Runnable, java.lang.Runnable).Opens text and confirm prompts for a viewer using whichever transport the implementation has available (anvil rename, chat conversation, or a chest-menu confirm).Parameters for a text-input prompt opened viaDialogService.promptText(org.bukkit.entity.Player, de.Keyle.MyPet.api.dialog.TextPromptSpec, java.util.function.Consumer<java.lang.String>, java.lang.Runnable).