ArgumentComp

abstract class ArgumentComp<T>(val consumes: Int) : ParsableArgument<T>

Represents a parsable argument that consumes multiple input strings.

Parameters

consumes

The number of input strings this argument consumes.

Inheritors

Constructors

Link copied to clipboard
constructor(consumes: Int)

Properties

Link copied to clipboard
open override val consumes: Int

Functions

Link copied to clipboard
abstract fun getParamFormat(isOptional: Boolean): String

Gets the usage string for this argument.

Link copied to clipboard
override fun parse(input: List<String>, sender: CommandSender): T

Parses the input strings into the desired type.

Link copied to clipboard
abstract fun parseComplete(input: List<String>, sender: CommandSender): T

Parses the complete input strings into the desired type.

Link copied to clipboard
abstract fun suggest(input: List<String>, sender: CommandSender): List<String>

Suggests possible completions for the input strings.