程序包的使用
org.bukkit.conversations
程序包
说明
与处理玩家输入的非聊天消息(即命令)相关的类.
致力于简化玩家与插件的直接通信的类(玩家与插件的对话,典型的场景比如操作的确认、提供插件所需数据).
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.-
-
类说明The Conversable interface is used to indicate objects that can have conversations.The Conversation class is responsible for tracking the current state of a conversation, displaying prompts to the user, and dispatching the user's response to the appropriate place.ConversationAbandonedEvent包含一个被终止的会话的细节信息.ConversationCanceller可以用来终止一个活跃的
Conversation
.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 allPrompt
invocations.A ConversationFactory is responsible for creating aConversation
from a predefined template.A ConversationPrefix implementation prepends all output from the conversation to the player.A Prompt is the main constituent of aConversation
.ValidatingPrompt is the base class for any prompt that requires validation. -