Uses of Class
cn.nukkit.command.Command
Packages that use Command
Package
Description
与命令及其实现相关的类
与插件(一种在运行时加载的软件,可以修改游戏玩法)相关的类.
-
Uses of Command in cn.nukkit.command
Subclasses of Command in cn.nukkit.commandFields in cn.nukkit.command with type parameters of type CommandMethods in cn.nukkit.command that return CommandModifier and TypeMethodDescriptionCommandMap.getCommand
(String name) 从给定命令名称或者别名获取命令对象SimpleCommandMap.getCommand
(String name) Methods in cn.nukkit.command that return types with arguments of type CommandModifier and TypeMethodDescriptionSimpleCommandMap.getCommands()
获取SimpleCommandMap.knownCommands
的未克隆实例Methods in cn.nukkit.command with parameters of type CommandModifier and TypeMethodDescriptionboolean
CommandExecutor.onCommand
(CommandSender sender, Command command, String label, String[] args) 在命令执行时会调用的方法。
Called when a command is executed.boolean
注册命令boolean
注册命令boolean
boolean
Method parameters in cn.nukkit.command with type arguments of type CommandModifier and TypeMethodDescriptionvoid
CommandMap.registerAll
(String fallbackPrefix, List<? extends Command> commands) 注册全部命令void
SimpleCommandMap.registerAll
(String fallbackPrefix, List<? extends Command> commands) -
Uses of Command in cn.nukkit.command.defaults
Subclasses of Command in cn.nukkit.command.defaultsModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
final class
class
class
class
class
class
class
class
class
测试命令基类class
class
class
class
class
class
class
class
class
代表原版命令的基类class
class
class
class
class
-
Uses of Command in cn.nukkit.command.simple
Subclasses of Command in cn.nukkit.command.simple -
Uses of Command in cn.nukkit.command.tree
Methods in cn.nukkit.command.tree that return CommandConstructors in cn.nukkit.command.tree with parameters of type CommandModifierConstructorDescription从给定的命令中初始化命令节点树,其中每个参数类型CommandParamType
会对应一个默认的参数节点,或者使用
CommandParameter.newType(String, CommandParamType, IParamNode)
CommandParameter.newEnum(String, boolean, CommandEnum, IParamNode)
初始化指定的命令节点。 应该在命令构造函数中commandParameters初始化完毕后调用Command::enableParamTree(),形如 -
Uses of Command in cn.nukkit.command.utils
Methods in cn.nukkit.command.utils that return CommandModifier and TypeMethodDescriptionCommandLogger.command()
Returns the value of thecommand
record component.CommandParser.getCommand()
Deprecated.Constructors in cn.nukkit.command.utils with parameters of type CommandModifierConstructorDescriptionCommandLogger
(Command command, CommandSender sender, String commandLabel, String[] args) CommandLogger
(Command command, CommandSender sender, String commandLabel, String[] args, CommandOutputContainer outputContainer) CommandLogger
(Command command, CommandSender sender, String commandLabel, String[] args, CommandOutputContainer outputContainer, Plugin plugin) Creates an instance of aCommandLogger
record class.CommandLogger
(Command command, CommandSender sender, String commandLabel, String[] args, Plugin plugin) CommandParser
(Command command, CommandSender sender, String[] args) Deprecated.CommandParser
(Command command, CommandSender sender, String[] args, boolean useParsedArgs) Deprecated. -
Uses of Command in cn.nukkit.plugin
Methods in cn.nukkit.plugin with parameters of type CommandModifier and TypeMethodDescriptionboolean
CommonJSPlugin.onCommand
(CommandSender sender, Command command, String label, String[] args) boolean
PluginBase.onCommand
(CommandSender sender, Command command, String label, String[] args) -
Uses of Command in cn.nukkit.plugin.js
Methods in cn.nukkit.plugin.js that return Command