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>> -
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) argumentOptional(String name, Class<?> type) async()protected void<T> LiteCommand<SENDER>meta(dev.rollczi.litecommands.meta.MetaKey<T> key, T value) permissions(String... permissions) final LiteCommand<SENDER>subCommands(LiteCommand<SENDER>... subCommands)
-
Field Details
-
name
-
aliases
-
meta
protected final dev.rollczi.litecommands.meta.Meta meta -
executor
-
arguments
-
contextRequirements
protected final List<dev.rollczi.litecommands.requirement.ContextRequirement<?>> contextRequirements -
bindRequirements
-
subCommands
-
-
Constructor Details
-
LiteCommand
-
LiteCommand
-
LiteCommand
-
-
Method Details
-
argument
-
argument
-
argumentOptional
-
argumentFlag
-
argumentJoin
-
argumentJoin
-
context
-
bind
-
permissions
-
async
-
meta
-
onExecute
public LiteCommand<SENDER> onExecute(Consumer<dev.rollczi.litecommands.command.executor.LiteContext<SENDER>> executor) -
execute
-
subCommands
-