public static class MessageArgument.Message
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private MessageArgument.Part[] |
selectors |
private java.lang.String |
text |
Constructor and Description |
---|
Message(java.lang.String textIn,
MessageArgument.Part[] selectorsIn) |
Modifier and Type | Method and Description |
---|---|
static MessageArgument.Message |
parse(com.mojang.brigadier.StringReader reader,
boolean allowSelectors) |
ITextComponent |
toComponent(CommandSource source,
boolean allowSelectors) |
private final java.lang.String text
private final MessageArgument.Part[] selectors
public Message(java.lang.String textIn, MessageArgument.Part[] selectorsIn)
public ITextComponent toComponent(CommandSource source, boolean allowSelectors) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static MessageArgument.Message parse(com.mojang.brigadier.StringReader reader, boolean allowSelectors) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException