Uses of Class
org.bukkit.conversations.ConversationContext
| Package | Description |
|---|---|
| org.bukkit.conversations |
Classes dedicated to facilitate direct player-to-plugin communication.
|
-
Uses of ConversationContext in org.bukkit.conversations
Fields in org.bukkit.conversations declared as ConversationContext Modifier and Type Field Description protected ConversationContextConversation. contextMethods in org.bukkit.conversations that return ConversationContext Modifier and Type Method Description ConversationContextConversation. getContext()Returns the Conversation'sConversationContext.ConversationContextConversationAbandonedEvent. getContext()Gets the abandoned conversation's conversation context.Methods in org.bukkit.conversations with parameters of type ConversationContext Modifier and Type Method Description PromptMessagePrompt. acceptInput(ConversationContext context, java.lang.String input)Accepts and ignores any user input, returning the next prompt in the prompt graph instead.PromptPrompt. acceptInput(ConversationContext context, java.lang.String input)Accepts and processes input from the user.PromptValidatingPrompt. acceptInput(ConversationContext context, java.lang.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, java.lang.String input)protected abstract PromptNumericPrompt. acceptValidatedInput(ConversationContext context, java.lang.Number input)Override this method to perform some action with the user's integer response.protected PromptNumericPrompt. acceptValidatedInput(ConversationContext context, java.lang.String input)protected PromptPlayerNamePrompt. acceptValidatedInput(ConversationContext context, java.lang.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, java.lang.String input)Override this method to accept and processes the validated input from the user.booleanMessagePrompt. blocksForInput(ConversationContext context)Message prompts never wait for user input before continuing.booleanPrompt. blocksForInput(ConversationContext context)Checks to see if this prompt implementation should wait for user input or immediately display the next prompt.booleanStringPrompt. blocksForInput(ConversationContext context)Ensures that the prompt waits for the user to provide input.booleanValidatingPrompt. blocksForInput(ConversationContext context)Ensures that the prompt waits for the user to provide input.booleanConversationCanceller. cancelBasedOnInput(ConversationContext context, java.lang.String input)Cancels a conversation based on user input.booleanExactMatchConversationCanceller. cancelBasedOnInput(ConversationContext context, java.lang.String input)booleanInactivityConversationCanceller. cancelBasedOnInput(ConversationContext context, java.lang.String input)booleanManuallyAbandonedConversationCanceller. cancelBasedOnInput(ConversationContext context, java.lang.String input)protected java.lang.StringNumericPrompt. getFailedValidationText(ConversationContext context, java.lang.Number invalidInput)Optionally override this method to display an additional message if the user enters an invalid numeric input.protected java.lang.StringNumericPrompt. getFailedValidationText(ConversationContext context, java.lang.String invalidInput)protected java.lang.StringValidatingPrompt. getFailedValidationText(ConversationContext context, java.lang.String invalidInput)Optionally override this method to display an additional message if the user enters an invalid input.protected java.lang.StringNumericPrompt. getInputNotNumericText(ConversationContext context, java.lang.String invalidInput)Optionally override this method to display an additional message if the user enters an invalid number.protected abstract PromptMessagePrompt. getNextPrompt(ConversationContext context)Override this method to return the next prompt in the prompt graph.java.lang.StringConversationPrefix. getPrefix(ConversationContext context)Gets the prefix to use before each message to the player.java.lang.StringNullConversationPrefix. getPrefix(ConversationContext context)Prepends each conversation message with an empty string.java.lang.StringPluginNameConversationPrefix. getPrefix(ConversationContext context)Prepends each conversation message with the plugin name.java.lang.StringPrompt. getPromptText(ConversationContext context)Gets the text to display to the user when this prompt is first presented.protected booleanBooleanPrompt. isInputValid(ConversationContext context, java.lang.String input)protected booleanFixedSetPrompt. isInputValid(ConversationContext context, java.lang.String input)protected booleanNumericPrompt. isInputValid(ConversationContext context, java.lang.String input)protected booleanPlayerNamePrompt. isInputValid(ConversationContext context, java.lang.String input)protected booleanRegexPrompt. isInputValid(ConversationContext context, java.lang.String input)protected abstract booleanValidatingPrompt. isInputValid(ConversationContext context, java.lang.String input)Override this method to check the validity of the player's input.protected booleanNumericPrompt. isNumberValid(ConversationContext context, java.lang.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.