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

Consolidates the results of parsing a command in an object. More...

Public Member Functions

 ParseResults (final CommandContextBuilder< S > context, final ImmutableStringReader reader, final Map< CommandNode< S >, CommandSyntaxException > exceptions)
 
 ParseResults (final CommandContextBuilder< S > context)
 
CommandContextBuilder< S > getContext ()
 The CommandContext that was created. More...
 
ImmutableStringReader getReader ()
 An immutable version of the string reader that was used to read the input. More...
 
Map< CommandNode< S >, CommandSyntaxExceptiongetExceptions ()
 Returns all exceptions that occurred while parsing together with the node that caused them. More...
 

Detailed Description

Consolidates the results of parsing a command in an object.

Parameters
<S>the type of the command source

Member Function Documentation

◆ getContext()

The CommandContext that was created.

Returns
the created command context

◆ getExceptions()

Returns all exceptions that occurred while parsing together with the node that caused them.

Returns
all exceptions that occurred while parsing together with the node that caused them

◆ getReader()

An immutable version of the string reader that was used to read the input.

Returns
the string reader that was used to read the input