类 BukkitCommand
- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.share.BukkitCommand
-
-
字段概要
-
从接口继承的字段 cn.mcres.karlatemp.mxlib.cmd.ICommand
COMMAND_NOT_FOUND
-
-
构造器概要
构造器 构造器 说明 BukkitCommand(Command command, ICommandProcessor processor)
-
方法概要
修饰符和类型 方法 说明 booleancheckPermission(ICommandSender sender)booleancommand(ICommandSender sender, ICommand command, String label, SafeList<String> args, List<String> full_path)booleancommand(ICommandSender sender, ICommand command, String label, String[] args)CommandgetCommand()StringgetName()ICommandsgetParent()StringgetPermission()IExceptionProcessorgetProcessor()获取执行错误处理器,当前没有执行处理器时拿上级处理器, 依次递归, 直到获取一个处理器/无法获取处理器ICommandsetParent(ICommands parent)已过时。ICommandsetPermission(String permission)ICommandsetProcessor(IExceptionProcessor processor)设置当前处理器List<String>tabComplete(ICommandSender sender, ICommand command, String alias, SafeList<String> args)List<String>tabComplete(ICommandSender sender, ICommand command, String alias, String[] args)
-
-
-
构造器详细资料
-
BukkitCommand
public BukkitCommand(Command command, ICommandProcessor processor)
-
-
方法详细资料
-
getCommand
public Command getCommand()
-
getPermission
@Nullable public String getPermission()
- 指定者:
getPermission在接口中ICommand
-
setPermission
@Nullable public ICommand setPermission(String permission)
- 指定者:
setPermission在接口中ICommand
-
setParent
@NotNull @Deprecated public ICommand setParent(@NotNull ICommands parent)
已过时。从接口复制的说明:ICommand
-
checkPermission
public boolean checkPermission(@NotNull ICommandSender sender)- 指定者:
checkPermission在接口中ICommand
-
getProcessor
@Nullable public IExceptionProcessor getProcessor()
从接口复制的说明:ICommand获取执行错误处理器,当前没有执行处理器时拿上级处理器, 依次递归, 直到获取一个处理器/无法获取处理器- 指定者:
getProcessor在接口中ICommand
-
setProcessor
public ICommand setProcessor(@Nullable IExceptionProcessor processor)
从接口复制的说明:ICommand设置当前处理器- 指定者:
setProcessor在接口中ICommand
-
tabComplete
@Nullable public List<String> tabComplete(@NotNull ICommandSender sender, @NotNull ICommand command, @NotNull String alias, @NotNull String[] args)
- 指定者:
tabComplete在接口中IExecutor
-
tabComplete
@Nullable public List<String> tabComplete(@NotNull ICommandSender sender, @NotNull ICommand command, @NotNull String alias, @NotNull SafeList<String> args)
- 指定者:
tabComplete在接口中IExecutor
-
command
public boolean command(@NotNull ICommandSender sender, @NotNull ICommand command, @NotNull String label, @NotNull SafeList<String> args, @NotNull List<String> full_path) throws CommandException- 指定者:
command在接口中IExecutor- 抛出:
CommandException
-
command
public boolean command(@NotNull ICommandSender sender, @NotNull ICommand command, @NotNull String label, @NotNull String[] args) throws CommandException- 指定者:
command在接口中IExecutor- 抛出:
CommandException
-
-