public class MessageArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>
Modifier and Type | Class and Description |
---|---|
static class |
MessageArgumentType.MessageFormat |
static class |
MessageArgumentType.MessageSelector |
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
Constructor and Description |
---|
MessageArgumentType() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
static Text |
getMessage(com.mojang.brigadier.context.CommandContext<ServerCommandSource> command,
String name) |
static MessageArgumentType |
message() |
MessageArgumentType.MessageFormat |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
public static MessageArgumentType message()
public static Text getMessage(com.mojang.brigadier.context.CommandContext<ServerCommandSource> command, String name)
public MessageArgumentType.MessageFormat parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>
com.mojang.brigadier.exceptions.CommandSyntaxException
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>