Class ConversationContext
java.lang.Object
org.bukkit.conversations.ConversationContext
-
Constructor Summary
ConstructorsConstructorDescriptionConversationContext(Plugin plugin, Conversable forWhom, Map<Object, Object> initialSessionData) -
Method Summary
Modifier and TypeMethodDescriptionGets the underlying sessionData map.Gets the subject of the conversation.Gets the plugin that owns this conversation.getSessionData(Object key) Gets session data shared between allPromptinvocations.voidsetSessionData(Object key, Object value) Sets session data shared between allPromptinvocations.
-
Constructor Details
-
ConversationContext
public ConversationContext(@Nullable Plugin plugin, @NotNull Conversable forWhom, @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
-
getPlugin
Gets the plugin that owns this conversation.- Returns:
- The owning plugin.
-
getForWhom
Gets the subject of the conversation.- Returns:
- The subject of the conversation.
-
getAllSessionData
-
getSessionData
-
setSessionData
-