Package | Description |
---|---|
org.bukkit.conversations |
Classes dedicated to facilitate direct player-to-plugin communication.
|
Modifier and Type | Method and Description |
---|---|
ConversationContext |
ConversationAbandonedEvent.getContext()
Gets the abandoned conversation's conversation context.
|
ConversationContext |
Conversation.getContext()
Returns the Conversation's
ConversationContext . |
Modifier and Type | Method and Description |
---|---|
Prompt |
ValidatingPrompt.acceptInput(ConversationContext context,
String input)
Accepts and processes input from the user and validates it.
|
Prompt |
Prompt.acceptInput(ConversationContext context,
String input)
Accepts and processes input from the user.
|
Prompt |
MessagePrompt.acceptInput(ConversationContext context,
String input)
Accepts and ignores any user input, returning the next prompt in the
prompt graph instead.
|
boolean |
ValidatingPrompt.blocksForInput(ConversationContext context)
Ensures that the prompt waits for the user to provide input.
|
boolean |
StringPrompt.blocksForInput(ConversationContext context)
Ensures that the prompt waits for the user to provide input.
|
boolean |
Prompt.blocksForInput(ConversationContext context)
Checks to see if this prompt implementation should wait for user input
or immediately display the next prompt.
|
boolean |
MessagePrompt.blocksForInput(ConversationContext context)
Message prompts never wait for user input before continuing.
|
boolean |
ManuallyAbandonedConversationCanceller.cancelBasedOnInput(ConversationContext context,
String input) |
boolean |
InactivityConversationCanceller.cancelBasedOnInput(ConversationContext context,
String input) |
boolean |
ExactMatchConversationCanceller.cancelBasedOnInput(ConversationContext context,
String input) |
boolean |
ConversationCanceller.cancelBasedOnInput(ConversationContext context,
String input)
Cancels a conversation based on user input.
|
String |
PluginNameConversationPrefix.getPrefix(ConversationContext context)
Prepends each conversation message with the plugin name.
|
String |
NullConversationPrefix.getPrefix(ConversationContext context)
Prepends each conversation message with an empty string.
|
String |
ConversationPrefix.getPrefix(ConversationContext context)
Gets the prefix to use before each message to the player.
|
String |
Prompt.getPromptText(ConversationContext context)
Gets the text to display to the user when this prompt is first
presented.
|
Copyright © 2022. All rights reserved.