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 official ej
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 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 official a
Lej;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
Lej;a()Lej;
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> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lej;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lvf;
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;
-
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 official a
Lej;a(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
named getSignedMessage
Lnet/minecraft/command/argument/MessageArgumentType;getSignedMessage(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 official a
Lej;a(Ljava/util/function/Consumer;Lds;Lvv;)V
intermediary method_45566
Lnet/minecraft/class_2196;method_45566(Ljava/util/function/Consumer;Lnet/minecraft/class_2168;Lnet/minecraft/class_7471;)V
named chain
Lnet/minecraft/command/argument/MessageArgumentType;chain(Ljava/util/function/Consumer;Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/network/message/SignedMessage;)V
-
chainUnsigned
private static void chainUnsigned(Consumer<SignedMessage> callback, ServerCommandSource source, SignedMessage message) - Mappings:
Namespace Name Mixin selector official b
Lej;b(Ljava/util/function/Consumer;Lds;Lvv;)V
intermediary method_45569
Lnet/minecraft/class_2196;method_45569(Ljava/util/function/Consumer;Lnet/minecraft/class_2168;Lnet/minecraft/class_7471;)V
named chainUnsigned
Lnet/minecraft/command/argument/MessageArgumentType;chainUnsigned(Ljava/util/function/Consumer;Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/network/message/SignedMessage;)V
-
filterText
private static CompletableFuture<FilteredMessage> filterText(ServerCommandSource source, SignedMessage message) - Mappings:
Namespace Name Mixin selector official a
Lej;a(Lds;Lvv;)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;
named filterText
Lnet/minecraft/command/argument/MessageArgumentType;filterText(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/network/message/SignedMessage;)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 official a
Lej;a(Lcom/mojang/brigadier/StringReader;)Lej$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>
-