Class ByteArgument<C>

    • Method Detail

      • of

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

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