ParsableArgument

abstract class ParsableArgument<T>

Represents a parsable argument for command handling.

Parameters

T

The type of the parsed argument.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val consumes: Int

The number of input strings this argument consumes.

Functions

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

Gets the usage string for this argument.

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

Parses the 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.