🎨 Fix formatting
This commit is contained in:
parent
5224050c99
commit
885cc7e005
3 changed files with 10 additions and 5 deletions
|
|
@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
### Changed
|
||||
- Moved the parser injector registry into CommandManager and added injection to CommandContext
|
||||
- Supporting repeating literals or argument names
|
||||
|
||||
### Deprecated
|
||||
- String keyed command meta
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ public class Command<C> {
|
|||
* @param senderType Required sender type. May be {@code null}
|
||||
* @param commandPermission Command permission
|
||||
* @param commandMeta Command meta instance
|
||||
* @since 1.3.0
|
||||
*/
|
||||
public Command(
|
||||
final @NonNull List<@NonNull CommandComponent<C>> commandComponents,
|
||||
|
|
@ -115,6 +116,7 @@ public class Command<C> {
|
|||
* @param commandExecutionHandler Execution handler
|
||||
* @param senderType Required sender type. May be {@code null}
|
||||
* @param commandMeta Command meta instance
|
||||
* @since 1.3.0
|
||||
*/
|
||||
public Command(
|
||||
final @NonNull List<@NonNull CommandComponent<C>> commandComponents,
|
||||
|
|
@ -132,6 +134,7 @@ public class Command<C> {
|
|||
* @param commandExecutionHandler Execution handler
|
||||
* @param commandPermission Command permission
|
||||
* @param commandMeta Command meta instance
|
||||
* @since 1.3.0
|
||||
*/
|
||||
public Command(
|
||||
final @NonNull List<@NonNull CommandComponent<C>> commandComponents,
|
||||
|
|
@ -284,7 +287,8 @@ public class Command<C> {
|
|||
/**
|
||||
* Returns a copy of the command component array
|
||||
*
|
||||
* @return Copy of the command component array. This List is mutable.
|
||||
* @return Copy of the command component array. This List is mutable
|
||||
* @since 1.3.0
|
||||
*/
|
||||
public @NonNull List<CommandComponent<@NonNull C>> getComponents() {
|
||||
return new ArrayList<>(this.components);
|
||||
|
|
@ -460,7 +464,7 @@ public class Command<C> {
|
|||
this.commandManager,
|
||||
commandMeta,
|
||||
this.senderType,
|
||||
this.commandArguments,
|
||||
this.commandComponents,
|
||||
this.commandExecutionHandler,
|
||||
this.commandPermission,
|
||||
this.flags
|
||||
|
|
|
|||
|
|
@ -23,16 +23,16 @@
|
|||
//
|
||||
package cloud.commandframework;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import cloud.commandframework.arguments.CommandArgument;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
import cloud.commandframework.arguments.CommandArgument;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* A single literal or argument component of a command
|
||||
*
|
||||
* @param <C> Command sender type
|
||||
* @since 1.3.0
|
||||
*/
|
||||
public final class CommandComponent<C> {
|
||||
private final CommandArgument<C, ?> argument;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue