类的使用
org.bukkit.help.HelpTopic
程序包
说明
通过Bukkit实现来模拟Minecraft原生命令(1.12后所有模拟命令被删除)并提供一些其他必要的命令.
用于操作默认的命令和主题帮助系统的类(你可以将你的命令帮助添加到系统命令帮助系统(help命令)内等等).
-
org.bukkit.command.defaults中HelpTopic的使用
-
org.bukkit.help中HelpTopic的使用
修饰符和类型类说明class
Lacking an alternative, the help system will create instances of GenericCommandHelpTopic for each command in the server's CommandMap.class
This help topic generates a list of other help topics.修饰符和类型方法说明HelpTopicFactory.createTopic
(TCommand command) This method accepts a command deriving from a custom command base class and constructs a custom HelpTopic for it.HelpMap.getHelpTopic
(String topicName) 获取指定主题名称的帮助主题。修饰符和类型方法说明void
把主题添加到服务器的帮助索引。protected String
IndexHelpTopic.buildIndexLine
(CommandSender sender, HelpTopic topic) Builds individual lines in the index topic.int
修饰符和类型方法说明protected void
IndexHelpTopic.setTopicsCollection
(Collection<HelpTopic> topics) Sets the contents of the internal allTopics collection.限定符构造器说明IndexHelpTopic
(String name, String shortText, String permission, Collection<HelpTopic> topics) IndexHelpTopic
(String name, String shortText, String permission, Collection<HelpTopic> topics, String preamble)