CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
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. More...
 
StringRange getRange ()
 Returns the range this argument spans in the input string. More...
 
getResult ()
 Returns the value of the argument. More...
 
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