类的使用
org.bukkit.conversations.ConversationFactory
使用ConversationFactory的程序包
-
org.bukkit.conversations中ConversationFactory的使用
修饰符和类型方法说明ConversationFactory.addConversationAbandonedListener(@NotNull ConversationAbandonedListener listener) 将ConversationAbandonedListener添加到此工厂构造的所有对话中。ConversationFactory.thatExcludesNonPlayersWithMessage(@Nullable String playerOnlyMessage) 阻止此工厂为非玩家Conversable对象创建对话。ConversationFactory.withConversationCanceller(@NotNull ConversationCanceller canceller) 将ConversationCanceller添加到构造的对话中。ConversationFactory.withEscapeSequence(@NotNull String escapeSequence) 设置玩家输入,当接收到时将立即终止对话。ConversationFactory.withFirstPrompt(@Nullable Prompt firstPrompt) 设置在所有生成对话中使用的第一个提示。ConversationFactory.withInitialSessionData(@NotNull Map<Object, Object> initialSessionData) 设置用于填充对话上下文 sessionData 映射的任何初始数据。ConversationFactory.withLocalEcho(boolean localEchoEnabled) 设置此工厂创建的所有Conversation的本地回显状态。ConversationFactory.withModality(boolean modal) 设置此工厂创建的所有Conversation的模态性。ConversationFactory.withPrefix(@NotNull ConversationPrefix prefix) 设置此前置所有生成对话输出的ConversationPrefix。ConversationFactory.withTimeout(int timeoutSeconds) 设置自动放弃所有生成对话之前等待的非活动秒数。