- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.shared.AbstractCommand
-
- cn.mcres.karlatemp.mxlib.shared.SharedCommands
-
- 直接已知子类:
MXBukkitLibCommandsExecutor
public class SharedCommands extends AbstractCommand implements ICommands
-
-
字段概要
-
从接口继承的字段 cn.mcres.karlatemp.mxlib.cmd.ICommand
COMMAND_NOT_FOUND
-
-
构造器概要
构造器 构造器 说明 SharedCommands(@NotNull String name)
-
方法概要
修饰符和类型 方法 说明 booleancommand(@NotNull ICommandSender sender, @NotNull ICommand command, @NotNull String label, @NotNull SafeList<String> args, @NotNull List<String> full_path)ICommandgetCommand(String name)Map<String,ICommand>getCommands()ICommandsregister(ICommand sub)ICommandsregister(ICommand sub, boolean force)@NotNull ICommandssetParent(@NotNull ICommands parent)已过时。@Nullable List<String>tabComplete(@NotNull ICommandSender sender, @NotNull ICommand command, @NotNull String alias, @NotNull SafeList<String> args)-
从类继承的方法 cn.mcres.karlatemp.mxlib.shared.AbstractCommand
checkPermission, getName, getParent, getPermission, getProcessor, setPermission, setProcessor
-
从接口继承的方法 cn.mcres.karlatemp.mxlib.cmd.ICommand
checkPermission, getAlias, getName, getParent, getPermission, getProcessor, setPermission, setProcessor
-
从接口继承的方法 cn.mcres.karlatemp.mxlib.cmd.IExecutor
command, command, tabComplete
-
-
-
-
构造器详细资料
-
SharedCommands
public SharedCommands(@NotNull @NotNull String name)
-
-
方法详细资料
-
getCommand
public ICommand getCommand(String name)
- 指定者:
getCommand在接口中ICommands
-
getCommands
public Map<String,ICommand> getCommands()
- 指定者:
getCommands在接口中ICommands
-
setParent
@NotNull @Deprecated public @NotNull ICommands setParent(@NotNull @NotNull ICommands parent)
已过时。从接口复制的说明: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
-
-