类 IndexHelpTopic
如果向构造函数提供了前言文本, 该文本将在索引中的第一项之前显示.
-
字段概要
字段从类继承的字段 org.bukkit.help.HelpTopic
amendedPermission, fullText, name, shortText -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidamendCanSee(@Nullable String amendedPermission) 允许服务器管理员覆盖查看帮助主题所需的权限.buildIndexLine(@NotNull CommandSender sender, @NotNull HelpTopic topic) 构建索引主题中的每一行.buildPreamble(@NotNull CommandSender sender) 构建主题前言.booleancanSee(@NotNull CommandSender sender) 确定Player是否被允许查看此帮助主题.getFullText(@NotNull CommandSender sender) 返回当用户请求此主题详情时显示的完整帮助主题描述.protected voidsetTopicsCollection(@NotNull Collection<HelpTopic> topics) 设置内部allTopics集合的内容.从类继承的方法 org.bukkit.help.HelpTopic
amendTopic, applyAmendment, getName, getShortText
-
字段详细资料
-
permission
-
preamble
-
allTopics
-
-
构造器详细资料
-
IndexHelpTopic
-
IndexHelpTopic
-
-
方法详细资料
-
setTopicsCollection
设置内部allTopics集合的内容.原文: Sets the contents of the internal allTopics collection.
- 参数:
topics- 要设置的主题.
-
canSee
从类复制的说明:HelpTopic确定Player是否被允许查看此帮助主题.HelpTopic实现在确定主题可见性时应考虑服务器管理员通过
HelpTopic.amendCanSee(String)函数设置的意愿.原文: Determines if a
Playeris allowed to see this help topic.HelpTopic implementations should take server administrator wishes into account as set by the
HelpTopic.amendCanSee(String)function. -
amendCanSee
从类复制的说明:HelpTopic允许服务器管理员覆盖查看帮助主题所需的权限.HelpTopic实现在
HelpTopic.canSee(org.bukkit.command.CommandSender)函数中确定主题可见性时应考虑这一点.原文: Allows the server administrator to override the permission required to see a help topic.
HelpTopic implementations should take this into account when determining topic visibility on the
HelpTopic.canSee(org.bukkit.command.CommandSender)function.- 覆盖:
amendCanSee在类中HelpTopic- 参数:
amendedPermission- 服务器管理员希望应用于此主题的权限节点.
-
getFullText
从类复制的说明:HelpTopic返回当用户请求此主题详情时显示的完整帮助主题描述.结果将被分页以适当适应用户的客户端.
原文: Returns the full description of this help topic that is displayed when the user requests this topic's details.
The result will be paginated to properly fit the user's client.
- 覆盖:
getFullText在类中HelpTopic- 参数:
sender- 请求完整文本的玩家或控制台. 对于在自定义实现中基于子权限进一步安全裁剪命令完整文本很有用.- 返回:
- 完整的主题描述.
-
buildPreamble
构建主题前言. 重写此方法可更改索引前言的外观.原文: Builds the topic preamble. Override this method to change how the index preamble looks.
- 参数:
sender- 请求前言的命令发送者- 返回:
- 主题前言
-
buildIndexLine
@NotNull protected @NotNull String buildIndexLine(@NotNull @NotNull CommandSender sender, @NotNull @NotNull HelpTopic topic) 构建索引主题中的每一行. 重写此方法可更改索引行的渲染方式.原文: Builds individual lines in the index topic. Override this method to change how index lines are rendered.
- 参数:
sender- 请求索引行的命令发送者topic- 要渲染为索引行的主题- 返回:
- 渲染后的索引行
-