Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INVALID_COMPONENT_EXCEPTION |
Modifier | Constructor and Description |
---|---|
private |
TextArgumentType() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
static Text |
getTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
Text |
parse(com.mojang.brigadier.StringReader stringReader) |
static TextArgumentType |
text() |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_COMPONENT_EXCEPTION
public static Text getTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static TextArgumentType text()
public Text parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<Text>
com.mojang.brigadier.exceptions.CommandSyntaxException
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<Text>