Class LiteCommand<SENDER>
java.lang.Object
dev.rollczi.litecommands.programmatic.LiteCommand<SENDER>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<dev.rollczi.litecommands.argument.Argument<?>> protected final List<dev.rollczi.litecommands.requirement.BindRequirement<?>> protected final List<dev.rollczi.litecommands.requirement.ContextRequirement<?>> protected final dev.rollczi.litecommands.meta.Metaprotected final Stringprotected final List<LiteCommand<SENDER>> protected boolean -
Constructor Summary
ConstructorsConstructorDescriptionLiteCommand(String name) LiteCommand(String name, String... aliases) LiteCommand(String name, List<String> aliases) -
Method Summary
Modifier and TypeMethodDescriptionargument(dev.rollczi.litecommands.argument.Argument<?> argument) argumentFlag(String name) argumentJoin(String name) argumentJoin(String name, String separator, int limit) argumentNullable(String name, Class<?> type) argumentOptional(String name, Class<?> type) argumentQuoted(String name) async()protected voidfinal LiteCommand<SENDER> final LiteCommand<SENDER> executeReturn(Function<dev.rollczi.litecommands.command.executor.LiteContext<SENDER>, Object> executor) <T> LiteCommand<SENDER> meta(dev.rollczi.litecommands.meta.MetaKey<T> key, T value) final LiteCommand<SENDER> Deprecated.permissions(String... permissions) final LiteCommand<SENDER> subCommands(LiteCommand<SENDER>... subCommands) Disables the executor for this command.
-
Field Details
-
name
-
aliases
-
meta
protected final dev.rollczi.litecommands.meta.Meta meta -
executor
-
withExecutor
protected boolean withExecutor -
arguments
-
contextRequirements
protected final List<dev.rollczi.litecommands.requirement.ContextRequirement<?>> contextRequirements -
bindRequirements
-
subCommands
-
-
Constructor Details
-
LiteCommand
-
LiteCommand
-
LiteCommand
-
-
Method Details
-
argument
-
argument
-
argumentQuoted
-
argumentOptional
-
argumentNullable
-
argumentFlag
-
argumentJoin
-
argumentJoin
-
context
-
bind
-
permissions
-
async
-
meta
-
onExecute
@Deprecated public final LiteCommand<SENDER> onExecute(Consumer<dev.rollczi.litecommands.command.executor.LiteContext<SENDER>> executor) Deprecated.Useexecute(Consumer)instead -
execute
public final LiteCommand<SENDER> execute(Consumer<dev.rollczi.litecommands.command.executor.LiteContext<SENDER>> executor) -
executeReturn
@Experimental public final LiteCommand<SENDER> executeReturn(Function<dev.rollczi.litecommands.command.executor.LiteContext<SENDER>, Object> executor) -
withoutExecutor
Disables the executor for this command. Useful when you want to use subcommands only. -
execute
-
subCommands
-
execute(Consumer)instead