Uses of Interface
org.bukkit.conversations.Prompt
Package
Description
Classes dedicated to facilitate direct player-to-plugin communication.
-
Uses of Prompt in org.bukkit.conversations
Modifier and TypeClassDescriptionclass
BooleanPrompt is the base class for any prompt that requires a boolean response from the user.class
FixedSetPrompt is the base class for any prompt that requires a fixed set response from the user.class
MessagePrompt is the base class for any prompt that only displays a message to the user and requires no input.class
NumericPrompt is the base class for any prompt that requires aNumber
response from the user.class
PlayerNamePrompt is the base class for any prompt that requires the player to enter another player's name.class
RegexPrompt is the base class for any prompt that requires an input validated by a regular expression.class
StringPrompt is the base class for any prompt that accepts an arbitrary string from the user.class
ValidatingPrompt is the base class for any prompt that requires validation.Modifier and TypeFieldDescriptionprotected Prompt
Conversation.currentPrompt
static final Prompt
Prompt.END_OF_CONVERSATION
A convenience constant for indicating the end of a conversation.protected Prompt
ConversationFactory.firstPrompt
Modifier and TypeMethodDescriptionMessagePrompt.acceptInput
(@NotNull ConversationContext context, @Nullable String input) Accepts and ignores any user input, returning the next prompt in the prompt graph instead.Prompt.acceptInput
(@NotNull ConversationContext context, @Nullable String input) Accepts and processes input from the user.ValidatingPrompt.acceptInput
(@NotNull ConversationContext context, @Nullable String input) Accepts and processes input from the user and validates it.BooleanPrompt.acceptValidatedInput
(@NotNull ConversationContext context, boolean input) Override this method to perform some action with the user's boolean response.BooleanPrompt.acceptValidatedInput
(@NotNull ConversationContext context, @NotNull String input) NumericPrompt.acceptValidatedInput
(@NotNull ConversationContext context, @NotNull Number input) Override this method to perform some action with the user's integer response.NumericPrompt.acceptValidatedInput
(@NotNull ConversationContext context, @NotNull String input) PlayerNamePrompt.acceptValidatedInput
(@NotNull ConversationContext context, @NotNull String input) PlayerNamePrompt.acceptValidatedInput
(@NotNull ConversationContext context, @NotNull Player input) Override this method to perform some action with the user's player name response.ValidatingPrompt.acceptValidatedInput
(@NotNull ConversationContext context, @NotNull String input) Override this method to accept and processes the validated input from the user.MessagePrompt.getNextPrompt
(@NotNull ConversationContext context) Override this method to return the next prompt in the prompt graph.Modifier and TypeMethodDescriptionConversationFactory.withFirstPrompt
(@Nullable Prompt firstPrompt) Sets the first prompt to use in all generated conversations.ModifierConstructorDescriptionConversation
(@Nullable Plugin plugin, @NotNull Conversable forWhom, @Nullable Prompt firstPrompt) Initializes a new Conversation.Conversation
(@Nullable Plugin plugin, @NotNull Conversable forWhom, @Nullable Prompt firstPrompt, @NotNull Map<Object, Object> initialSessionData) Initializes a new Conversation.