Package org.bukkit.conversations
Class ConversationContext
java.lang.Object
org.bukkit.conversations.ConversationContext
A ConversationContext provides continuity between nodes in the prompt graph
 by giving the developer access to the subject of the conversation and a
 generic map for storing values that are shared between all 
Prompt
 invocations.- 
Constructor SummaryConstructorsConstructorDescriptionConversationContext(@Nullable Plugin plugin, @NotNull Conversable forWhom, @NotNull Map<Object, Object> initialSessionData) 
- 
Method SummaryModifier and TypeMethodDescriptionGets the underlying sessionData map.Gets the subject of the conversation.Gets the plugin that owns this conversation.getSessionData(@NotNull Object key) Gets session data shared between allPromptinvocations.voidsetSessionData(@NotNull Object key, @Nullable Object value) Sets session data shared between allPromptinvocations.
- 
Constructor Details- 
ConversationContextpublic ConversationContext(@Nullable @Nullable Plugin plugin, @NotNull @NotNull Conversable forWhom, @NotNull @NotNull Map<Object, Object> initialSessionData) - Parameters:
- plugin- The owning plugin.
- forWhom- The subject of the conversation.
- initialSessionData- Any initial values to put in the sessionData map.
 
 
- 
- 
Method Details- 
getPluginGets the plugin that owns this conversation.- Returns:
- The owning plugin.
 
- 
getForWhomGets the subject of the conversation.- Returns:
- The subject of the conversation.
 
- 
getAllSessionDataGets the underlying sessionData map. May be directly modified to manipulate session data.- Returns:
- The full sessionData map.
 
- 
getSessionDataGets session data shared between allPromptinvocations. Use this as a way to pass data through each Prompt as the conversation develops.- Parameters:
- key- The session data key.
- Returns:
- The requested session data.
 
- 
setSessionDataSets session data shared between allPromptinvocations. Use this as a way to pass data through each prompt as the conversation develops.- Parameters:
- key- The session data key.
- value- The session data value.
 
 
-