Package net.minecraft.command.argument
Class MessageArgumentType
java.lang.Object
net.minecraft.command.argument.MessageArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>
public class MessageArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageArgumentType.MessageFormatstatic classMessageArgumentType.MessageSelector -
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLES -
Constructor Summary
Constructors Constructor Description MessageArgumentType() -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static TextgetMessage(com.mojang.brigadier.context.CommandContext<ServerCommandSource> command, String name)static MessageArgumentTypemessage()MessageArgumentType.MessageFormatparse(com.mojang.brigadier.StringReader stringReader)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
-
-
Constructor Details
-
MessageArgumentType
public MessageArgumentType()
-
-
Method Details
-
message
-
getMessage
public static Text getMessage(com.mojang.brigadier.context.CommandContext<ServerCommandSource> command, String name) -
parse
public MessageArgumentType.MessageFormat parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>
-