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.bind.BindRequirement<?>> protected final List<dev.rollczi.litecommands.context.ContextRequirement<?>> protected final dev.rollczi.litecommands.meta.Metaprotected 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) argumentFlag(String... names) argumentJoin(String name) argumentJoin(String name, String separator, int limit) <T> LiteCommand<SENDER> argumentNullable(String name, Class<T> type) <T> LiteCommand<SENDER> argumentOptional(String name, Class<T> type) argumentQuoted(String name) async()description(String... description) protected voidfinal LiteCommand<SENDER> final LiteCommand<SENDER> executeReturn(Function<dev.rollczi.litecommands.command.executor.LiteContext<SENDER>, Object> executor) <T> LiteCommand<SENDER> executorMeta(dev.rollczi.litecommands.meta.MetaKey<T> key, T value) literalIgnoreCase(String... names) <T> LiteCommand<SENDER> meta(dev.rollczi.litecommands.meta.MetaKey<T> key, T value) final LiteCommand<SENDER> Deprecated.permissions(String... permissions) strict(dev.rollczi.litecommands.strict.StrictMode strict) strictExecutor(dev.rollczi.litecommands.strict.StrictMode strict) final LiteCommand<SENDER> subcommand(String name, UnaryOperator<LiteCommand<SENDER>> operator) final LiteCommand<SENDER> subcommands(LiteCommand<SENDER>... subCommands) final LiteCommand<SENDER> subCommands(LiteCommand<SENDER>... subCommands) Deprecated.Disables the executor for this command.
-
Field Details
-
name
-
aliases
-
meta
protected final dev.rollczi.litecommands.meta.Meta meta -
executorMeta
protected final dev.rollczi.litecommands.meta.Meta executorMeta -
executor
-
withExecutor
protected boolean withExecutor -
arguments
-
contextRequirements
-
bindRequirements
-
subCommands
-
-
Constructor Details
-
LiteCommand
-
LiteCommand
-
LiteCommand
-
-
Method Details
-
argument
-
argument
-
argumentQuoted
-
argumentOptional
-
argumentNullable
-
argumentFlag
-
argumentFlag
-
argumentJoin
-
argumentJoin
-
literal
-
literalIgnoreCase
-
context
-
bind
-
permissions
-
async
-
meta
-
executorMeta
-
description
-
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. -
strict
-
strictExecutor
@Experimental public LiteCommand<SENDER> strictExecutor(dev.rollczi.litecommands.strict.StrictMode strict) -
execute
-
subCommands
@SafeVarargs @Deprecated public final LiteCommand<SENDER> subCommands(LiteCommand<SENDER>... subCommands) Deprecated. -
subcommands
-
subcommand
public final LiteCommand<SENDER> subcommand(String name, UnaryOperator<LiteCommand<SENDER>> operator)
-
execute(Consumer)instead