Interface Prompt

All Superinterfaces:
Cloneable
All Known Implementing Classes:
BooleanPrompt, FixedSetPrompt, MessagePrompt, NumericPrompt, PlayerNamePrompt, RegexPrompt, StringPrompt, ValidatingPrompt

@Deprecated(forRemoval=true) public interface Prompt extends Cloneable
Deprecated, for removal: This API element is subject to removal in a future version.
The conversation API has been deprecated for removal. This system does not support component based messages and has been slowly losing functionality over the years as Minecraft has changed that this API can not adapt to. It is recommended you instead manually listen to the AsyncChatEvent or alternatively using Dialog to get user input.
A Prompt is the main constituent of a Conversation. Each prompt displays text to the user and optionally waits for a user's response. Prompts are chained together into a directed graph that represents the conversation flow. To halt a conversation, END_OF_CONVERSATION is returned in liu of another Prompt object.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Prompt
    Deprecated, for removal: This API element is subject to removal in a future version.
    A convenience constant for indicating the end of a conversation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Accepts and processes input from the user.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks to see if this prompt implementation should wait for user input or immediately display the next prompt.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the text to display to the user when this prompt is first presented.
  • Field Details

    • END_OF_CONVERSATION

      static final Prompt END_OF_CONVERSATION
      Deprecated, for removal: This API element is subject to removal in a future version.
      A convenience constant for indicating the end of a conversation.
  • Method Details

    • getPromptText

      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the text to display to the user when this prompt is first presented.
      Parameters:
      context - Context information about the conversation.
      Returns:
      The text to display.
    • blocksForInput

      boolean blocksForInput(@NotNull @NotNull ConversationContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks to see if this prompt implementation should wait for user input or immediately display the next prompt.
      Parameters:
      context - Context information about the conversation.
      Returns:
      If true, the Conversation will wait for input before continuing. If false, acceptInput(ConversationContext, String) will be called immediately with null input.
    • acceptInput

      Deprecated, for removal: This API element is subject to removal in a future version.
      Accepts and processes input from the user. Using the input, the next Prompt in the prompt graph is returned.
      Parameters:
      context - Context information about the conversation.
      input - The input text from the user.
      Returns:
      The next Prompt in the prompt graph.