Package net.minecraft.command.arguments
Class ComponentArgument
- java.lang.Object
-
- net.minecraft.command.arguments.ComponentArgument
-
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ITextComponent>
public class ComponentArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<ITextComponent>
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_INVALID_JSON
private static java.util.Collection<java.lang.String>
EXAMPLES
-
Constructor Summary
Constructors Modifier Constructor Description private
ComponentArgument()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ITextComponent
getComponent(com.mojang.brigadier.context.CommandContext<CommandSource> p_197068_0_, java.lang.String p_197068_1_)
java.util.Collection<java.lang.String>
getExamples()
ITextComponent
parse(com.mojang.brigadier.StringReader p_parse_1_)
static ComponentArgument
textComponent()
-
-
-
Method Detail
-
getComponent
public static ITextComponent getComponent(com.mojang.brigadier.context.CommandContext<CommandSource> p_197068_0_, java.lang.String p_197068_1_)
-
textComponent
public static ComponentArgument textComponent()
-
parse
public ITextComponent parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ITextComponent>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
public java.util.Collection<java.lang.String> getExamples()
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ITextComponent>
-
-