类的使用
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
(@NotNull String topicName) 获取指定主题名称的帮助主题。修饰符和类型方法说明void
把主题添加到服务器的帮助索引。IndexHelpTopic.buildIndexLine
(@NotNull CommandSender sender, @NotNull HelpTopic topic) Builds individual lines in the index topic.int
修饰符和类型方法说明protected void
IndexHelpTopic.setTopicsCollection
(@NotNull Collection<HelpTopic> topics) Sets the contents of the internal allTopics collection.限定符构造器说明IndexHelpTopic
(@NotNull String name, @Nullable String shortText, @Nullable String permission, @NotNull Collection<HelpTopic> topics) IndexHelpTopic
(@NotNull String name, @Nullable String shortText, @Nullable String permission, @NotNull Collection<HelpTopic> topics, @Nullable String preamble)