类 BasicCommand
java.lang.Object
top.shjibi.plugineer.command.base.BasicCommand
- 所有已实现的接口:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor
- 直接已知子类:
PlayerCommand
基本的指令
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明completeTab(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) 决定tab列表中出现哪些词abstract voidexecute(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) 决定执行指令出现的效果int获取指令所需的最少参数@NotNull StringgetName()获取指令名字@NotNull String[]getUsage()获取指令用法final booleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, String[] args) onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, String[] args) voidregister()注册指令protected final void向指令发送者发送指令的正确用法
-
字段详细资料
-
plugin
@NotNull protected final @NotNull org.bukkit.plugin.java.JavaPlugin plugin -
name
-
minArgs
protected final int minArgs -
usage
-
-
构造器详细资料
-
BasicCommand
public BasicCommand(@NotNull @NotNull org.bukkit.plugin.java.JavaPlugin plugin)
-
-
方法详细资料
-
register
public void register()注册指令 -
sendUsage
protected final void sendUsage(@NotNull @NotNull org.bukkit.command.CommandSender sender, Object... replacement) 向指令发送者发送指令的正确用法 -
onCommand
public final boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, String[] args) - 指定者:
onCommand在接口中org.bukkit.command.CommandExecutor
-
onTabComplete
public final List<String> onTabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, String[] args) - 指定者:
onTabComplete在接口中org.bukkit.command.TabCompleter
-
completeTab
@Nullable public @Nullable List<String> completeTab(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) 决定tab列表中出现哪些词 -
execute
public abstract void execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) 决定执行指令出现的效果 -
getName
获取指令名字 -
getMinArgs
public int getMinArgs()获取指令所需的最少参数 -
getUsage
获取指令用法
-