Uses of Interface
org.bukkit.conversations.Prompt
Packages that use Prompt
Package
Description
Classes dedicated to facilitate direct player-to-plugin communication.
-
Uses of Prompt in org.bukkit.conversations
Classes in org.bukkit.conversations that implement PromptModifier and TypeClassDescriptionclassBooleanPrompt is the base class for any prompt that requires a boolean response from the user.classFixedSetPrompt is the base class for any prompt that requires a fixed set response from the user.classMessagePrompt is the base class for any prompt that only displays a message to the user and requires no input.classNumericPrompt is the base class for any prompt that requires aNumberresponse from the user.classPlayerNamePrompt is the base class for any prompt that requires the player to enter another player's name.classRegexPrompt is the base class for any prompt that requires an input validated by a regular expression.classStringPrompt is the base class for any prompt that accepts an arbitrary string from the user.classValidatingPrompt is the base class for any prompt that requires validation.Fields in org.bukkit.conversations declared as PromptModifier and TypeFieldDescriptionprotected PromptConversation.currentPromptstatic final PromptPrompt.END_OF_CONVERSATIONA convenience constant for indicating the end of a conversation.protected PromptConversationFactory.firstPromptMethods in org.bukkit.conversations that return PromptModifier and TypeMethodDescriptionMessagePrompt.acceptInput(ConversationContext context, String input) Accepts and ignores any user input, returning the next prompt in the prompt graph instead.Prompt.acceptInput(ConversationContext context, String input) Accepts and processes input from the user.ValidatingPrompt.acceptInput(ConversationContext context, String input) Accepts and processes input from the user and validates it.protected abstract PromptBooleanPrompt.acceptValidatedInput(ConversationContext context, boolean input) Override this method to perform some action with the user's boolean response.protected PromptBooleanPrompt.acceptValidatedInput(ConversationContext context, String input) protected abstract PromptNumericPrompt.acceptValidatedInput(ConversationContext context, Number input) Override this method to perform some action with the user's integer response.protected PromptNumericPrompt.acceptValidatedInput(ConversationContext context, String input) protected PromptPlayerNamePrompt.acceptValidatedInput(ConversationContext context, String input) protected abstract PromptPlayerNamePrompt.acceptValidatedInput(ConversationContext context, Player input) Override this method to perform some action with the user's player name response.protected abstract PromptValidatingPrompt.acceptValidatedInput(ConversationContext context, String input) Override this method to accept and processes the validated input from the user.protected abstract PromptMessagePrompt.getNextPrompt(ConversationContext context) Override this method to return the next prompt in the prompt graph.Methods in org.bukkit.conversations with parameters of type PromptModifier and TypeMethodDescriptionConversationFactory.withFirstPrompt(Prompt firstPrompt) Sets the first prompt to use in all generated conversations.Constructors in org.bukkit.conversations with parameters of type PromptModifierConstructorDescriptionConversation(Plugin plugin, Conversable forWhom, Prompt firstPrompt) Initializes a new Conversation.Conversation(Plugin plugin, Conversable forWhom, Prompt firstPrompt, Map<Object, Object> initialSessionData) Initializes a new Conversation.