- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.share.BukkitExecutorCommand
-
- 所有已实现的接口:
ICommand
,IExecutor
,CommandExecutor
,TabCompleter
,TabExecutor
public class BukkitExecutorCommand extends Object implements ICommand, TabExecutor
-
-
字段概要
-
从接口继承的字段 cn.mcres.karlatemp.mxlib.cmd.ICommand
COMMAND_NOT_FOUND
-
-
构造器概要
构造器 构造器 说明 BukkitExecutorCommand(Object exe, ICommandProcessor processor)
-
方法概要
修饰符和类型 方法 说明 boolean
checkPermission(@NotNull ICommandSender sender)
boolean
command(@NotNull ICommandSender sender, @NotNull ICommand command, @NotNull String label, @NotNull SafeList<String> args, @NotNull List<String> full_path)
@NotNull String
getName()
@Nullable ICommands
getParent()
@Nullable String
getPermission()
@Nullable IExceptionProcessor
getProcessor()
获取执行错误处理器,当前没有执行处理器时拿上级处理器, 依次递归, 直到获取一个处理器/无法获取处理器boolean
onCommand(CommandSender commandSender, Command command, String s, String[] strings)
List<String>
onTabComplete(CommandSender commandSender, Command command, String s, String[] strings)
@NotNull ICommand
setParent(@NotNull ICommands parent)
已过时。@Nullable ICommand
setPermission(String permission)
ICommand
setProcessor(@Nullable IExceptionProcessor processor)
设置当前处理器@Nullable List<String>
tabComplete(@NotNull ICommandSender sender, @NotNull ICommand command, @NotNull String alias, @NotNull SafeList<String> args)
-
从接口继承的方法 cn.mcres.karlatemp.mxlib.cmd.IExecutor
command, command, tabComplete
-
-
-
-
构造器详细资料
-
BukkitExecutorCommand
public BukkitExecutorCommand(Object exe, ICommandProcessor processor)
-
-
方法详细资料
-
getPermission
@Nullable public @Nullable String getPermission()
- 指定者:
getPermission
在接口中ICommand
-
setPermission
@Nullable public @Nullable ICommand setPermission(String permission)
- 指定者:
setPermission
在接口中ICommand
-
setParent
@NotNull @Deprecated public @NotNull ICommand setParent(@NotNull @NotNull ICommands parent)
已过时。从接口复制的说明:ICommand
-
checkPermission
public boolean checkPermission(@NotNull @NotNull ICommandSender sender)
- 指定者:
checkPermission
在接口中ICommand
-
getProcessor
@Nullable public @Nullable IExceptionProcessor getProcessor()
从接口复制的说明:ICommand
获取执行错误处理器,当前没有执行处理器时拿上级处理器, 依次递归, 直到获取一个处理器/无法获取处理器- 指定者:
getProcessor
在接口中ICommand
-
setProcessor
public ICommand setProcessor(@Nullable @Nullable IExceptionProcessor processor)
从接口复制的说明:ICommand
设置当前处理器- 指定者:
setProcessor
在接口中ICommand
-
tabComplete
@Nullable public @Nullable List<String> tabComplete(@NotNull @NotNull ICommandSender sender, @NotNull @NotNull ICommand command, @NotNull @NotNull String alias, @NotNull @NotNull SafeList<String> args)
- 指定者:
tabComplete
在接口中IExecutor
-
command
public boolean command(@NotNull @NotNull ICommandSender sender, @NotNull @NotNull ICommand command, @NotNull @NotNull String label, @NotNull @NotNull SafeList<String> args, @NotNull @NotNull List<String> full_path) throws CommandException
- 指定者:
command
在接口中IExecutor
- 抛出:
CommandException
-
onCommand
public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings)
- 指定者:
onCommand
在接口中CommandExecutor
-
onTabComplete
public List<String> onTabComplete(CommandSender commandSender, Command command, String s, String[] strings)
- 指定者:
onTabComplete
在接口中TabCompleter
-
-