类的使用
org.bukkit.conversations.ConversationFactory
使用ConversationFactory的程序包
-
org.bukkit.conversations中ConversationFactory的使用
修饰符和类型方法说明ConversationFactory.addConversationAbandonedListener(@NotNull ConversationAbandonedListener listener) Adds aConversationAbandonedListenerto all conversations constructed by this factory.ConversationFactory.thatExcludesNonPlayersWithMessage(@Nullable String playerOnlyMessage) Prevents this factory from creating a conversation for non-playerConversableobjects.ConversationFactory.withConversationCanceller(@NotNull ConversationCanceller canceller) Adds aConversationCancellerto constructed conversations.ConversationFactory.withEscapeSequence(@NotNull String escapeSequence) Sets the player input that, when received, will immediately terminate the conversation.ConversationFactory.withFirstPrompt(@Nullable Prompt firstPrompt) Sets the first prompt to use in all generated conversations.ConversationFactory.withInitialSessionData(@NotNull Map<Object, Object> initialSessionData) Sets any initial data with which to populate the conversation context sessionData map.ConversationFactory.withLocalEcho(boolean localEchoEnabled) Sets the local echo status for allConversations created by this factory.ConversationFactory.withModality(boolean modal) Sets the modality of allConversations created by this factory.ConversationFactory.withPrefix(@NotNull ConversationPrefix prefix) Sets theConversationPrefixthat prepends all output from all generated conversations.ConversationFactory.withTimeout(int timeoutSeconds) Sets the number of inactive seconds to wait before automatically abandoning all generated conversations.