程序包 org.bukkit.help

# 类 GenericCommandHelpTopic

java.lang.Object
org.bukkit.help.HelpTopic
org.bukkit.help.GenericCommandHelpTopic

public class GenericCommandHelpTopic extends HelpTopic
Lacking an alternative, the help system will create instances of GenericCommandHelpTopic for each command in the server's CommandMap. You can use this class as a base class for custom help topics, or as an example for how to write your own.

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `protected Command`
  `command`

  ### 从类继承的字段 org.bukkit.help.HelpTopic

  `amendedPermission, fullText, name, shortText`

- ## 构造器概要

  构造器
  构造器
  说明
  `GenericCommandHelpTopic(@NotNull Command command)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `boolean`
  `canSee(@NotNull CommandSender sender)`
  Determines if a `Player` is allowed to see this help topic.

  ### 从类继承的方法 org.bukkit.help.HelpTopic

  `amendCanSee, amendTopic, applyAmendment, getFullText, getName, getShortText`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 字段详细资料

  - ### command

    protected Command command

- ## 构造器详细资料

  - ### GenericCommandHelpTopic

    public GenericCommandHelpTopic(@NotNull @NotNull Command command)

- ## 方法详细资料

  - ### canSee

    public boolean canSee(@NotNull @NotNull CommandSender sender)
    从类复制的说明: `HelpTopic`
    Determines if a `Player` is allowed to see this help topic.

    HelpTopic implementations should take server administrator wishes into account as set by the `HelpTopic.amendCanSee(String)` function.

    指定者:
      `canSee` 在类中 `HelpTopic`
    参数:
      `sender` - The Player in question.
    返回:
      True of the Player can see this help topic, false otherwise.