Package net.minecraft.command.argument
Class TextArgumentType
java.lang.Object
net.minecraft.command.argument.TextArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Text>
public class TextArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Text>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLESstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeINVALID_COMPONENT_EXCEPTION -
Constructor Summary
Constructors Modifier Constructor Description privateTextArgumentType() -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static TextgetTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)Textparse(com.mojang.brigadier.StringReader stringReader)static TextArgumentTypetext()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
EXAMPLES
-
INVALID_COMPONENT_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_COMPONENT_EXCEPTION
-
-
Constructor Details
-
TextArgumentType
private TextArgumentType()
-
-
Method Details
-
getTextArgument
public static Text getTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
text
-
parse
public Text parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<Text>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<Text>
-