CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
|
A CommandExceptionType
taking two inputs and returning a message based on those.
More...
Classes | |
interface | Function |
A simple Function to compute a Message based on the two input arguments. More... | |
Public Member Functions | |
Dynamic2CommandExceptionType (final Function function) | |
CommandSyntaxException | create (final Object a, final Object b) |
Creates a CommandSyntaxException using the two passed arguments. More... | |
CommandSyntaxException | createWithContext (final ImmutableStringReader reader, final Object a, final Object b) |
Creates a CommandSyntaxException using the two passed arguments and includes information about the position and input. More... | |
A CommandExceptionType
taking two inputs and returning a message based on those.
The arguments 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.Dynamic2CommandExceptionType.create | ( | final Object | a, |
final Object | b | ||
) |
Creates a CommandSyntaxException
using the two passed arguments.
a | the first argument |
b | the second argument |
CommandSyntaxException
CommandSyntaxException com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType.createWithContext | ( | final ImmutableStringReader | reader, |
final Object | a, | ||
final Object | b | ||
) |
Creates a CommandSyntaxException
using the two passed arguments and includes information about the position and input.
reader | the ImmutableStringReader giving information about the input and the place the error occurred |
a | the first argument |
b | the second argument |
CommandSyntaxException