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 class
static final class
static final class
Nested 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>
Create a newUUIDArgument.Builder
.static <C> @NonNull UUIDArgument.Builder<C>
newBuilder
(@NonNull String name) Deprecated.static <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
-
builder
@API(status=STABLE, since="1.8.0") public static <C> @NonNull UUIDArgument.Builder<C> builder(@NonNull String name) Create a newUUIDArgument.Builder
.- Type Parameters:
C
- sender type- Parameters:
name
- argument name- Returns:
- new
UUIDArgument.Builder
- Since:
- 1.8.0
-
newBuilder
@API(status=DEPRECATED, since="1.8.0") @Deprecated public static <C> @NonNull UUIDArgument.Builder<C> newBuilder(@NonNull String name) Deprecated.preferbuilder(String)
Create a new builder- Type Parameters:
C
- Command sender type- Parameters:
name
- Name of the argument- 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
-
builder(String)