Uses of Class
org.bukkit.conversations.ConversationContext
Packages that use ConversationContext
Package
Description
Classes dedicated to facilitate direct player-to-plugin communication.
-
Uses of ConversationContext in org.bukkit.conversations
Fields in org.bukkit.conversations declared as ConversationContextMethods in org.bukkit.conversations that return ConversationContextModifier and TypeMethodDescriptionConversation.getContext()Returns the Conversation'sConversationContext.ConversationAbandonedEvent.getContext()Gets the abandoned conversation's conversation context.Methods in org.bukkit.conversations with parameters of type ConversationContextModifier 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.booleanMessagePrompt.blocksForInput(@NotNull ConversationContext context) Message prompts never wait for user input before continuing.booleanPrompt.blocksForInput(@NotNull ConversationContext context) Checks to see if this prompt implementation should wait for user input or immediately display the next prompt.booleanStringPrompt.blocksForInput(@NotNull ConversationContext context) Ensures that the prompt waits for the user to provide input.booleanValidatingPrompt.blocksForInput(@NotNull ConversationContext context) Ensures that the prompt waits for the user to provide input.booleanConversationCanceller.cancelBasedOnInput(@NotNull ConversationContext context, @NotNull String input) Cancels a conversation based on user input.booleanExactMatchConversationCanceller.cancelBasedOnInput(@NotNull ConversationContext context, @NotNull String input) booleanInactivityConversationCanceller.cancelBasedOnInput(@NotNull ConversationContext context, @NotNull String input) booleanManuallyAbandonedConversationCanceller.cancelBasedOnInput(@NotNull ConversationContext context, @NotNull String input) NumericPrompt.getFailedValidationText(@NotNull ConversationContext context, @NotNull Number invalidInput) Optionally override this method to display an additional message if the user enters an invalid numeric input.NumericPrompt.getFailedValidationText(@NotNull ConversationContext context, @NotNull String invalidInput) ValidatingPrompt.getFailedValidationText(@NotNull ConversationContext context, @NotNull String invalidInput) Optionally override this method to display an additional message if the user enters an invalid input.NumericPrompt.getInputNotNumericText(@NotNull ConversationContext context, @NotNull String invalidInput) Optionally override this method to display an additional message if the user enters an invalid number.MessagePrompt.getNextPrompt(@NotNull ConversationContext context) Override this method to return the next prompt in the prompt graph.ConversationPrefix.getPrefix(@NotNull ConversationContext context) Gets the prefix to use before each message to the player.NullConversationPrefix.getPrefix(@NotNull ConversationContext context) Prepends each conversation message with an empty string.PluginNameConversationPrefix.getPrefix(@NotNull ConversationContext context) Prepends each conversation message with the plugin name.Prompt.getPromptText(@NotNull ConversationContext context) Gets the text to display to the user when this prompt is first presented.protected booleanBooleanPrompt.isInputValid(@NotNull ConversationContext context, @NotNull String input) protected booleanFixedSetPrompt.isInputValid(@NotNull ConversationContext context, @NotNull String input) protected booleanNumericPrompt.isInputValid(@NotNull ConversationContext context, @NotNull String input) protected booleanPlayerNamePrompt.isInputValid(@NotNull ConversationContext context, @NotNull String input) protected booleanRegexPrompt.isInputValid(@NotNull ConversationContext context, @NotNull String input) protected abstract booleanValidatingPrompt.isInputValid(@NotNull ConversationContext context, @NotNull String input) Override this method to check the validity of the player's input.protected booleanNumericPrompt.isNumberValid(@NotNull ConversationContext context, @NotNull Number input) Override this method to do further validation on the numeric player input after the input has been determined to actually be a number.