CommandAPI 12.1.0
An API for the command UI introduced in Minecraft 1.13
Loading...
Searching...
No Matches
com.mojang.brigadier.context.ParsedArgument< S, T > Class Template Reference

Represents an argument that was parsed from the input. More...

Public Member Functions

 ParsedArgument (final int start, final int end, final T result)
 Creates a new ParsedArgument for a given string range with a given value.
StringRange getRange ()
 Returns the range this argument spans in the input string.
T getResult ()
 Returns the value of the argument.
boolean equals (final Object o)
int hashCode ()

Detailed Description

Represents an argument that was parsed from the input.

Parameters
<S>the type of the command source
<T>the type of the argument

Constructor & Destructor Documentation

◆ ParsedArgument()

com.mojang.brigadier.context.ParsedArgument< S, T >.ParsedArgument ( final int start,
final int end,
final T result )

Creates a new ParsedArgument for a given string range with a given value.

Parameters
startthe start of this argument in the input
endthe end of this argument in the input
resultthe value of this argument

Member Function Documentation

◆ getRange()

Returns the range this argument spans in the input string.

Returns
the range this argument spans in the input string

◆ getResult()

Returns the value of the argument.

Returns
the value of the argument