Class LongArgument<C>

    • Method Detail

      • of

        public static <C> @NonNull CommandArgument<C,​Longof​(@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,​Longoptional​(@NonNull String name,
                                                                          long 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 long getMin()
        Get the minimum accepted long that could have been parsed
        Returns:
        Minimum long
      • getMax

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