Package | Description |
---|---|
com.mrivanplays.commandworker.core | |
com.mrivanplays.commandworker.core.argument | |
com.mrivanplays.commandworker.core.argument.parser |
Modifier and Type | Method and Description |
---|---|
Optional<Argument> |
LiteralNode.getArgumentByName(@NotNull String name)
Returns
Optional value of the argument with the name specified. |
Modifier and Type | Method and Description |
---|---|
@NotNull LiteralNode |
LiteralNode.argument(@NotNull Argument argument)
Adds argument to the base sub commands.
|
Modifier and Type | Class and Description |
---|---|
class |
LiteralArgument
Represents literal argument.
|
class |
RequiredArgument<V>
Represents required argument.
|
Modifier and Type | Method and Description |
---|---|
@NotNull RequiredArgument<V> |
RequiredArgument.then(Argument... other) |
@NotNull LiteralArgument |
LiteralArgument.then(Argument... other) |
@NotNull RequiredArgument<V> |
RequiredArgument.then(@NotNull Argument child)
Adds a child to this required argument.
|
@NotNull LiteralArgument |
LiteralArgument.then(@NotNull Argument other)
Adds a child to this argument.
|
Modifier and Type | Method and Description |
---|---|
Argument |
ArgumentData.getArgument()
Returns the
Argument , data for is held here. |
@Nullable Argument |
ArgumentHolder.getLastArgument()
Returns the last argument, for which we have a value.
|
Modifier and Type | Method and Description |
---|---|
static ArgumentData |
ArgumentData.newArgumentData(IndexRange index,
Argument argument,
Object parsed,
String rawValue,
com.mojang.brigadier.exceptions.CommandSyntaxException exception) |
Copyright © 2020. All rights reserved.