Class DoubleArgument<C>

    • Method Detail

      • of

        public static <C> @NonNull CommandArgument<C,​Doubleof​(@NonNull String name)
        Create a new required command argument
        Type Parameters:
        C - Command sender type
        Parameters:
        name - Argument name
        Returns:
        Created argument
      • optional

        public static <C> @NonNull CommandArgument<C,​Doubleoptional​(@NonNull String name,
                                                                            double defaultNum)
        Create a new required command argument with a default value
        Type Parameters:
        C - Command sender type
        Parameters:
        name - Argument name
        defaultNum - Default num
        Returns:
        Created argument
      • getMin

        public double getMin()
        Get the minimum accepted double that could have been parsed
        Returns:
        Minimum double
      • getMax

        public double getMax()
        Get the maximum accepted double that could have been parsed
        Returns:
        Maximum double