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 dz
intermediary net/minecraft/class_2196
named net/minecraft/command/argument/MessageArgumentType
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Text
getMessage(com.mojang.brigadier.context.CommandContext<ServerCommandSource> command, String name)
static MessageArgumentType
message()
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
Ldz;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
Ldz;a()Ldz;
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
Ldz;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Los;
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
Ldz;a(Lcom/mojang/brigadier/StringReader;)Ldz$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>
-