CommandAPI 9.4.1
An API for the command UI introduced in Minecraft 1.13
com.mojang.brigadier.context.ParsedCommandNode< S > Class Template Reference

Represents a CommandNode that was parsed from the input. More...

Public Member Functions

 ParsedCommandNode (CommandNode< S > node, StringRange range)
 Creates a new ParsedCommandNode for the given node within the given string range. More...
 
CommandNode< S > getNode ()
 Returns the node that was parsed. More...
 
StringRange getRange ()
 Returns the range this command node spans in the input string. More...
 
String toString ()
 
boolean equals (Object o)
 
int hashCode ()
 

Detailed Description

Represents a CommandNode that was parsed from the input.

Parameters
<S>the type of the command source

Constructor & Destructor Documentation

◆ ParsedCommandNode()

Creates a new ParsedCommandNode for the given node within the given string range.

Parameters
nodethe node that was parsed
rangethe string range in the input it was parsed from

Member Function Documentation

◆ getNode()

Returns the node that was parsed.

Returns
the node that was parsed

◆ getRange()

Returns the range this command node spans in the input string.

Returns
the range this command node spans in the input string