Package me.kzheart.klib.command.api
Interface CommandSpec
public interface CommandSpec
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> CommandSpecargument(CommandArgument<T> argument) Append one argument and return its child node for flat chaining.<T> CommandSpecargument(CommandArgument<T> argument, Consumer<? super CommandSpec> configure) description(String description) errorHandler(CommandErrorHandler handler) 为当前节点及其子节点选择异常反馈;子节点可覆盖。未配置时继承模块策略。executes(CommandHandler handler) helpStyle(Supplier<CommandHelpStyle> style) 允许配置重载替换样式;不重建命令树。提供器在主线程读取。helpStyle(CommandHelpStyle style) literal(String literal, Consumer<? super CommandSpec> configure) permission(String permission) default CommandSpecDescend through a space-separated literal path; existing literal nodes are reused.
-
Method Details
-
route
Descend through a space-separated literal path; existing literal nodes are reused. -
argument
Append one argument and return its child node for flat chaining. -
description
-
permission
-
playerOnly
CommandSpec playerOnly() -
executes
-
errorHandler
为当前节点及其子节点选择异常反馈;子节点可覆盖。未配置时继承模块策略。 -
helpStyle
-
helpStyle
允许配置重载替换样式;不重建命令树。提供器在主线程读取。 -
literal
-
argument
-