Class UUIDArgument<C>

  • All Implemented Interfaces:
    java.lang.Comparable<CommandArgument<?,​?>>

    public final class UUIDArgument<C>
    extends CommandArgument<C,​java.util.UUID>
    • Method Detail

      • newBuilder

        public static <C> @NonNull UUIDArgument.Builder<C> newBuilder​(@NonNull java.lang.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,​java.util.UUID> of​(@NonNull java.lang.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,​java.util.UUID> optional​(@NonNull java.lang.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,​java.util.UUID> optional​(@NonNull java.lang.String name,
                                                                                    @NonNull java.util.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