类 HelpCommand
java.lang.Object
org.bukkit.command.Command
org.bukkit.command.defaults.BukkitCommand
org.bukkit.command.defaults.HelpCommand
-
字段概要
从类继承的字段 org.bukkit.command.Command
description, timings, usageMessage -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected static int计算两个字符串之间的 Damerau-Levenshtein 距离。boolean执行命令.findPossibleMatches(@NotNull String searchString) tabComplete(@NotNull CommandSender sender, @NotNull String alias, @NotNull String[] args) 对此命令进行tab补全并返回补全项列表.从类继承的方法 org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
构造器详细资料
-
HelpCommand
public HelpCommand()
-
-
方法详细资料
-
execute
public boolean execute(@NotNull @NotNull CommandSender sender, @NotNull @NotNull String currentAlias, @NotNull @NotNull String[] args) 从类复制的说明:Command执行命令.原文:Executes the command, returning its success
-
tabComplete
@NotNull public @NotNull List<String> tabComplete(@NotNull @NotNull CommandSender sender, @NotNull @NotNull String alias, @NotNull @NotNull String[] args) 从类复制的说明:Command对此命令进行tab补全并返回补全项列表.原文:Executed on tab completion for this command, returning a list of options the player can tab through.
- 覆盖:
tabComplete在类中Command- 参数:
sender- 执行此命令的对象alias- 执行命令所用的别名args- 传递给此命令的所有参数,用' '分割- 返回:
- 指定参数的tab补全项列表.列表永远不会为null. 列表可能是不可变的.
-
findPossibleMatches
-
damerauLevenshteinDistance
protected static int damerauLevenshteinDistance(@Nullable @Nullable String s1, @Nullable @Nullable String s2) 计算两个字符串之间的 Damerau-Levenshtein 距离。改编自 Wikipedia: Damerau–Levenshtein distance 中的算法。- 参数:
s1- 第一个被比较的字符串。s2- 第二个被比较的字符串。- 返回:
- 从 s1 转换到 s2 所需的替换、删除、插入和转置操作次数。
原文:Computes the Dameraur-Levenshtein Distance between two strings. Adapted from the algorithm at Wikipedia: Damerau–Levenshtein distance
-