Class UUIDArgument<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument<C,UUID>
cloud.commandframework.arguments.standard.UUIDArgument<C>
- All Implemented Interfaces:
CloudKeyHolder<UUID>,Comparable<CommandArgument<?,?>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classNested classes/interfaces inherited from class cloud.commandframework.arguments.CommandArgument
CommandArgument.TypedBuilder<C,T, B extends CommandArgument.Builder<C, T>> -
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NonNull UUIDArgument.Builder<C>newBuilder(@NonNull String name) Create a new builderstatic <C> @NonNull CommandArgument<C,UUID> Create a new required command componentstatic <C> @NonNull CommandArgument<C,UUID> Create a new optional command componentstatic <C> @NonNull CommandArgument<C,UUID> Create a new required command component with a default valueMethods inherited from class cloud.commandframework.arguments.CommandArgument
addPreprocessor, compareTo, copy, equals, getDefaultDescription, getDefaultValue, getKey, getName, getOwningCommand, getParser, getSuggestionsProvider, getValueType, hasDefaultValue, hashCode, isArgumentRegistered, isRequired, ofType, ofType, preprocess, setArgumentRegistered, setOwningCommand, toString
-
Method Details
-
newBuilder
Create a new builder- Type Parameters:
C- Command sender type- Parameters:
name- Name of the component- Returns:
- Created builder
-
of
Create a new required command component- Type Parameters:
C- Command sender type- Parameters:
name- Component name- Returns:
- Created component
-
optional
Create a new optional command component- Type Parameters:
C- Command sender type- Parameters:
name- Component name- Returns:
- Created component
-
optional
public static <C> @NonNull CommandArgument<C,UUID> optional(@NonNull String name, @NonNull UUID defaultUUID) Create a new required command component with a default value- Type Parameters:
C- Command sender type- Parameters:
name- Component namedefaultUUID- Default uuid- Returns:
- Created component
-