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<?,?>>

@API(status=STABLE) public final class UUIDArgument<C> extends CommandArgument<C,UUID>
  • Method Details

    • newBuilder

      public static <C> @NonNull UUIDArgument.Builder<C> newBuilder(@NonNull String name)
      Create a new builder
      Type Parameters:
      C - Command sender type
      Parameters:
      name - Name of the component
      Returns:
      Created builder
    • of

      public static <C> @NonNull CommandArgument<C,UUID> of(@NonNull String name)
      Create a new required 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)
      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 name
      defaultUUID - Default uuid
      Returns:
      Created component