CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
|
MessageBuilder is used to create error messages for invalid argument inputs. More...
Public Member Functions | |
MessageBuilder () | |
Create a blank message. | |
MessageBuilder (String str) | |
Create a message with an input string. More... | |
MessageBuilder | appendArgInput () |
Appends the argument input that the CommandSender used in this command. More... | |
MessageBuilder | appendFullInput () |
Appends the whole input that the CommandSender used in this command. More... | |
MessageBuilder | appendHere () |
Appends <–[HERE] to the end of the message. More... | |
MessageBuilder | append (String str) |
Appends a string to the end of this message. More... | |
MessageBuilder | append (Object obj) |
Appends an object to the end of this message. More... | |
String | toString () |
Returns the String content of this MessageBuilder. More... | |
MessageBuilder is used to create error messages for invalid argument inputs.
dev.jorel.commandapi.arguments.CustomArgument< T, B >.MessageBuilder.MessageBuilder | ( | String | str | ) |
Create a message with an input string.
str | The string to start the message with |
MessageBuilder dev.jorel.commandapi.arguments.CustomArgument< T, B >.MessageBuilder.append | ( | Object | obj | ) |
Appends an object to the end of this message.
obj | The object to append to the end of this message |
MessageBuilder dev.jorel.commandapi.arguments.CustomArgument< T, B >.MessageBuilder.append | ( | String | str | ) |
Appends a string to the end of this message.
str | The string to append to the end of this message |
MessageBuilder dev.jorel.commandapi.arguments.CustomArgument< T, B >.MessageBuilder.appendArgInput | ( | ) |
Appends the argument input that the CommandSender used in this command.
For example, if /foo bar
was executed and an error occurs with the CustomArgument bar
, then the arg input will append bar
to the end of the message.
This input is determined at runtime, and is stored as input%
until executed
MessageBuilder dev.jorel.commandapi.arguments.CustomArgument< T, B >.MessageBuilder.appendFullInput | ( | ) |
Appends the whole input that the CommandSender used in this command.
For example, if /foo bar
was executed, then foo bar
will be appended to the end of the message.
This input is determined at runtime, and is stored as finput%
until executed
MessageBuilder dev.jorel.commandapi.arguments.CustomArgument< T, B >.MessageBuilder.appendHere | ( | ) |
Appends <–[HERE]
to the end of the message.
String dev.jorel.commandapi.arguments.CustomArgument< T, B >.MessageBuilder.toString | ( | ) |
Returns the String content of this MessageBuilder.