Package | Description |
---|---|
org.bukkit.conversations |
Classes dedicated to facilitate direct player-to-plugin communication.
|
Modifier and Type | Method | Description |
---|---|---|
ConversationFactory |
ConversationFactory.addConversationAbandonedListener(ConversationAbandonedListener listener) |
Adds a
ConversationAbandonedListener to all conversations
constructed by this factory. |
ConversationFactory |
ConversationFactory.thatExcludesNonPlayersWithMessage(java.lang.String playerOnlyMessage) |
Prevents this factory from creating a conversation for non-player
Conversable objects. |
ConversationFactory |
ConversationFactory.withConversationCanceller(ConversationCanceller canceller) |
Adds a
ConversationCanceller to constructed conversations. |
ConversationFactory |
ConversationFactory.withEscapeSequence(java.lang.String escapeSequence) |
Sets the player input that, when received, will immediately terminate
the conversation.
|
ConversationFactory |
ConversationFactory.withFirstPrompt(Prompt firstPrompt) |
Sets the first prompt to use in all generated conversations.
|
ConversationFactory |
ConversationFactory.withInitialSessionData(java.util.Map<java.lang.Object,java.lang.Object> initialSessionData) |
Sets any initial data with which to populate the conversation context
sessionData map.
|
ConversationFactory |
ConversationFactory.withLocalEcho(boolean localEchoEnabled) |
Sets the local echo status for all
Conversation s created by
this factory. |
ConversationFactory |
ConversationFactory.withModality(boolean modal) |
Sets the modality of all
Conversation s created by this factory. |
ConversationFactory |
ConversationFactory.withPrefix(ConversationPrefix prefix) |
Sets the
ConversationPrefix that prepends all output from all
generated conversations. |
ConversationFactory |
ConversationFactory.withTimeout(int timeoutSeconds) |
Sets the number of inactive seconds to wait before automatically
abandoning all generated conversations.
|
Copyright © 2018. All rights reserved.