Class StringPrompt

java.lang.Object
org.bukkit.conversations.StringPrompt
All Implemented Interfaces:
Cloneable, Prompt

@Deprecated(forRemoval=true) public abstract class StringPrompt extends Object implements Prompt
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.
StringPrompt is the base class for any prompt that accepts an arbitrary string from the user.
  • Constructor Details

    • StringPrompt

      public StringPrompt()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • blocksForInput

      public boolean blocksForInput(@NotNull @NotNull ConversationContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Ensures that the prompt waits for the user to provide input.
      Specified by:
      blocksForInput in interface Prompt
      Parameters:
      context - Context information about the conversation.
      Returns:
      True.