CommandAPI 9.3.0
An API for the command UI introduced in Minecraft 1.13
com.mojang.brigadier.exceptions.SimpleCommandExceptionType Class Reference

A simple CommandExceptionType that gives a static message, that does not change based on the type of error. More...

+ Inheritance diagram for com.mojang.brigadier.exceptions.SimpleCommandExceptionType:

Public Member Functions

 SimpleCommandExceptionType (final Message message)
 
CommandSyntaxException create ()
 Creates a CommandSyntaxException. More...
 
CommandSyntaxException createWithContext (final ImmutableStringReader reader)
 Creates a CommandSyntaxException including information about the position and input. More...
 
String toString ()
 

Detailed Description

A simple CommandExceptionType that gives a static message, that does not change based on the type of error.

An example could be a message displaying a command was not found, but not including the full input again.

Member Function Documentation

◆ create()

CommandSyntaxException com.mojang.brigadier.exceptions.SimpleCommandExceptionType.create ( )

Creates a CommandSyntaxException.

Returns
a constructed CommandSyntaxException

◆ createWithContext()

CommandSyntaxException com.mojang.brigadier.exceptions.SimpleCommandExceptionType.createWithContext ( final ImmutableStringReader  reader)

Creates a CommandSyntaxException including information about the position and input.

Parameters
readerthe ImmutableStringReader giving information about the input and the place the error occurred
Returns
a constructed CommandSyntaxException