Argument

interface Argument<T, C>

Command arguments. It can be used as a child element of Usage. There is a type in the argument, type analysis is automatically performed when the client inputs, and if it cannot be parsed, the command execution is refused.

Functions

parse
Link copied to clipboard
abstract fun parse(context: CommandContext<CommandListenerWrapper>, key: String): T

Properties

action
Link copied to clipboard
abstract val action: ContextAction<C>?

Argument context action

name
Link copied to clipboard
abstract val name: String

Name of argument.

suggestion
Link copied to clipboard
abstract val suggestion: SuggestionAction<C>?

Lambda expression for tab completion of its arguments.

type
Link copied to clipboard
abstract val type: ArgumentType<*>?

Mojang Brigadier argument type.

Inheritors

BooleanArgument
Link copied to clipboard
DoubleArgument
Link copied to clipboard
EntityArgument
Link copied to clipboard
FloatArgument
Link copied to clipboard
IntegerArgument
Link copied to clipboard
LiteralArgument
Link copied to clipboard
LocationArgument
Link copied to clipboard
LongArgument
Link copied to clipboard
StringArgument
Link copied to clipboard
VectorArgument
Link copied to clipboard