CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
|
A CommandExceptionType
taking one input and returning a message based on it.
More...
Public Member Functions | |
DynamicCommandExceptionType (final Function< Object, Message > function) | |
CommandSyntaxException | create (final Object arg) |
Creates a CommandSyntaxException using the passed argument. More... | |
CommandSyntaxException | createWithContext (final ImmutableStringReader reader, final Object arg) |
Creates a CommandSyntaxException using the passed argument and includes information about the position and input. More... | |
A CommandExceptionType
taking one input and returning a message based on it.
The argument can be used to e.g. format a message and display the input as well as why it did not match some criteria.
CommandSyntaxException com.mojang.brigadier.exceptions.DynamicCommandExceptionType.create | ( | final Object | arg | ) |
Creates a CommandSyntaxException
using the passed argument.
arg | the argument |
CommandSyntaxException
CommandSyntaxException com.mojang.brigadier.exceptions.DynamicCommandExceptionType.createWithContext | ( | final ImmutableStringReader | reader, |
final Object | arg | ||
) |
Creates a CommandSyntaxException
using the passed argument and includes information about the position and input.
reader | the ImmutableStringReader giving information about the input and the place the error occurred |
arg | the argument |
CommandSyntaxException