public class MessageArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<MessageArgument.Message>
Modifier and Type | Class and Description |
---|---|
static class |
MessageArgument.Message |
static class |
MessageArgument.Part |
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.String> |
EXAMPLES |
Constructor and Description |
---|
MessageArgument() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getExamples() |
static ITextComponent |
getMessage(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static MessageArgument |
message() |
MessageArgument.Message |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
public static MessageArgument message()
public static ITextComponent getMessage(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public MessageArgument.Message parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<MessageArgument.Message>
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<MessageArgument.Message>