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>
- Mappings:
Namespace Name official dp
intermediary net/minecraft/class_2196
named net/minecraft/command/argument/MessageArgumentType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessageArgumentType.MessageFormat
static class
MessageArgumentType.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 Text
getMessage(com.mojang.brigadier.context.CommandContext<ServerCommandSource> command, String name)
static MessageArgumentType
message()
MessageArgumentType.MessageFormat
parse(com.mojang.brigadier.StringReader stringReader)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Ldp;a:Ljava/util/Collection;
intermediary field_9876
Lnet/minecraft/class_2196;field_9876:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/MessageArgumentType;EXAMPLES:Ljava/util/Collection;
-
-
Constructor Details
-
MessageArgumentType
public MessageArgumentType()
-
-
Method Details
-
message
- Mappings:
Namespace Name Mixin selector official a
Ldp;a()Ldp;
intermediary method_9340
Lnet/minecraft/class_2196;method_9340()Lnet/minecraft/class_2196;
named message
Lnet/minecraft/command/argument/MessageArgumentType;message()Lnet/minecraft/command/argument/MessageArgumentType;
-
getMessage
public static Text getMessage(com.mojang.brigadier.context.CommandContext<ServerCommandSource> command, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldp;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Loi;
intermediary method_9339
Lnet/minecraft/class_2196;method_9339(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2561;
named getMessage
Lnet/minecraft/command/argument/MessageArgumentType;getMessage(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/text/Text;
-
parse
public MessageArgumentType.MessageFormat parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldp;a(Lcom/mojang/brigadier/StringReader;)Ldp$a;
intermediary method_9338
Lnet/minecraft/class_2196;method_9338(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2196$class_2197;
named parse
Lnet/minecraft/command/argument/MessageArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/MessageArgumentType$MessageFormat;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>
- Mappings:
Namespace Name Mixin selector official getExamples
Ldp;getExamples()Ljava/util/Collection;
intermediary getExamples
Lnet/minecraft/class_2196;getExamples()Ljava/util/Collection;
named getExamples
Lnet/minecraft/command/argument/MessageArgumentType;getExamples()Ljava/util/Collection;
-