public class ComponentArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<ITextComponent>
Modifier and Type | Field and Description |
---|---|
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
COMPONENT_INVALID |
private static java.util.Collection<java.lang.String> |
EXAMPLES |
Modifier | Constructor and Description |
---|---|
private |
ComponentArgument() |
Modifier and Type | Method and Description |
---|---|
static ComponentArgument |
component() |
static ITextComponent |
getComponent(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
java.util.Collection<java.lang.String> |
getExamples() |
ITextComponent |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
private static final java.util.Collection<java.lang.String> EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType COMPONENT_INVALID
public static ITextComponent getComponent(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name)
public static ComponentArgument component()
public ITextComponent parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<ITextComponent>
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<ITextComponent>