Class ShortArgument<C>

    • Method Detail

      • of

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

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