Package org.bukkit.conversations
Class StringPrompt
java.lang.Object
org.bukkit.conversations.StringPrompt
Deprecated, for removal: This API element is subject to removal in a future version.
StringPrompt is the base class for any prompt that accepts an arbitrary
string from the user.
-
Field Summary
Fields inherited from interface org.bukkit.conversations.Prompt
END_OF_CONVERSATION
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionboolean
blocksForInput
(@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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.conversations.Prompt
acceptInput, getPromptText
-
Constructor Details
-
StringPrompt
public StringPrompt()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
blocksForInput
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 interfacePrompt
- Parameters:
context
- Context information about the conversation.- Returns:
- True.
-
AsyncChatEvent
or alternatively usingDialog
to get user input.