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>
,SignedArgumentType<MessageArgumentType.MessageFormat>
public class MessageArgumentType
extends Object
implements SignedArgumentType<MessageArgumentType.MessageFormat>
- Mappings:
Namespace Name named net/minecraft/command/argument/MessageArgumentType
intermediary net/minecraft/class_2196
official fk
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection
<String> (package private) static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
chain
(Consumer<SignedMessage> callback, ServerCommandSource source, SignedMessage message) private static void
chainUnsigned
(Consumer<SignedMessage> callback, ServerCommandSource source, SignedMessage message) private static CompletableFuture
<FilteredMessage> filterText
(ServerCommandSource source, SignedMessage message) static Text
getMessage
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static void
getSignedMessage
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, Consumer<SignedMessage> callback) 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 named EXAMPLES
Lnet/minecraft/command/argument/MessageArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_9876
Lnet/minecraft/class_2196;field_9876:Ljava/util/Collection;
official a
Lfk;a:Ljava/util/Collection;
-
MESSAGE_TOO_LONG_EXCEPTION
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType MESSAGE_TOO_LONG_EXCEPTION- Mappings:
Namespace Name Mixin selector named MESSAGE_TOO_LONG_EXCEPTION
Lnet/minecraft/command/argument/MessageArgumentType;MESSAGE_TOO_LONG_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_51482
Lnet/minecraft/class_2196;field_51482:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
official b
Lfk;b:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
-
Constructor Details
-
MessageArgumentType
public MessageArgumentType()
-
-
Method Details
-
message
- Mappings:
Namespace Name Mixin selector named message
Lnet/minecraft/command/argument/MessageArgumentType;message()Lnet/minecraft/command/argument/MessageArgumentType;
intermediary method_9340
Lnet/minecraft/class_2196;method_9340()Lnet/minecraft/class_2196;
official a
Lfk;a()Lfk;
-
getMessage
public static Text getMessage(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named getMessage
Lnet/minecraft/command/argument/MessageArgumentType;getMessage(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/text/Text;
intermediary method_9339
Lnet/minecraft/class_2196;method_9339(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2561;
official a
Lfk;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lwy;
-
getSignedMessage
public static void getSignedMessage(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, Consumer<SignedMessage> callback) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named getSignedMessage
Lnet/minecraft/command/argument/MessageArgumentType;getSignedMessage(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ljava/util/function/Consumer;)V
intermediary method_45562
Lnet/minecraft/class_2196;method_45562(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ljava/util/function/Consumer;)V
official a
Lfk;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ljava/util/function/Consumer;)V
-
chain
private static void chain(Consumer<SignedMessage> callback, ServerCommandSource source, SignedMessage message) - Mappings:
Namespace Name Mixin selector named chain
Lnet/minecraft/command/argument/MessageArgumentType;chain(Ljava/util/function/Consumer;Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/network/message/SignedMessage;)V
intermediary method_45566
Lnet/minecraft/class_2196;method_45566(Ljava/util/function/Consumer;Lnet/minecraft/class_2168;Lnet/minecraft/class_7471;)V
official a
Lfk;a(Ljava/util/function/Consumer;Let;Lxo;)V
-
chainUnsigned
private static void chainUnsigned(Consumer<SignedMessage> callback, ServerCommandSource source, SignedMessage message) - Mappings:
Namespace Name Mixin selector named chainUnsigned
Lnet/minecraft/command/argument/MessageArgumentType;chainUnsigned(Ljava/util/function/Consumer;Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/network/message/SignedMessage;)V
intermediary method_45569
Lnet/minecraft/class_2196;method_45569(Ljava/util/function/Consumer;Lnet/minecraft/class_2168;Lnet/minecraft/class_7471;)V
official b
Lfk;b(Ljava/util/function/Consumer;Let;Lxo;)V
-
filterText
private static CompletableFuture<FilteredMessage> filterText(ServerCommandSource source, SignedMessage message) - Mappings:
Namespace Name Mixin selector named filterText
Lnet/minecraft/command/argument/MessageArgumentType;filterText(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/network/message/SignedMessage;)Ljava/util/concurrent/CompletableFuture;
intermediary method_45563
Lnet/minecraft/class_2196;method_45563(Lnet/minecraft/class_2168;Lnet/minecraft/class_7471;)Ljava/util/concurrent/CompletableFuture;
official a
Lfk;a(Let;Lxo;)Ljava/util/concurrent/CompletableFuture;
-
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 named parse
Lnet/minecraft/command/argument/MessageArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/MessageArgumentType$MessageFormat;
intermediary method_9338
Lnet/minecraft/class_2196;method_9338(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2196$class_2197;
official a
Lfk;a(Lcom/mojang/brigadier/StringReader;)Lfk$a;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>
-