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>
,class_7517<MessageArgumentType.MessageFormat>
,TextConvertibleArgumentType<MessageArgumentType.MessageFormat>
public class MessageArgumentType
extends Object
implements TextConvertibleArgumentType<MessageArgumentType.MessageFormat>
- Mappings:
Namespace Name official ef
intermediary net/minecraft/class_2196
named net/minecraft/command/argument/MessageArgumentType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String>
(package private) static final org.slf4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Text
getMessage
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) getSignedMessage
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static MessageArgumentType
message()
method_44258
(ServerCommandSource serverCommandSource, MessageArgumentType.MessageFormat messageFormat) (package private) static void
method_44260
(ServerCommandSource serverCommandSource, CompletableFuture<?> completableFuture) parse
(com.mojang.brigadier.StringReader stringReader) toText
(MessageArgumentType.MessageFormat messageFormat) 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
Methods inherited from interface net.minecraft.class_7517
method_44282
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Lef;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;
-
field_39422
static final org.slf4j.Logger field_39422- Mappings:
Namespace Name Mixin selector official b
Lef;b:Lorg/slf4j/Logger;
intermediary field_39422
Lnet/minecraft/class_2196;field_39422:Lorg/slf4j/Logger;
named field_39422
Lnet/minecraft/command/argument/MessageArgumentType;field_39422:Lorg/slf4j/Logger;
-
-
Constructor Details
-
MessageArgumentType
public MessageArgumentType()
-
-
Method Details
-
message
- Mappings:
Namespace Name Mixin selector official a
Lef;a()Lef;
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
Lef;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lrm;
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 MessageArgumentType.class_7515 getSignedMessage(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 b
Lef;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lef$a;
intermediary method_43770
Lnet/minecraft/class_2196;method_43770(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2196$class_7515;
named getSignedMessage
Lnet/minecraft/command/argument/MessageArgumentType;getSignedMessage(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/MessageArgumentType$class_7515;
-
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
Lef;a(Lcom/mojang/brigadier/StringReader;)Lef$b;
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>
-
toText
- Specified by:
toText
in interfaceTextConvertibleArgumentType<MessageArgumentType.MessageFormat>
- Mappings:
Namespace Name Mixin selector official a
Lef;a(Lef$b;)Lrm;
intermediary method_43769
Lnet/minecraft/class_2196;method_43769(Lnet/minecraft/class_2196$class_2197;)Lnet/minecraft/class_2561;
named toText
Lnet/minecraft/command/argument/MessageArgumentType;toText(Lnet/minecraft/command/argument/MessageArgumentType$MessageFormat;)Lnet/minecraft/text/Text;
-
method_44258
public CompletableFuture<Text> method_44258(ServerCommandSource serverCommandSource, MessageArgumentType.MessageFormat messageFormat) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
method_44258
in interfaceclass_7517<MessageArgumentType.MessageFormat>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lef;a(Ldr;Lef$b;)Ljava/util/concurrent/CompletableFuture;
intermediary method_44257
Lnet/minecraft/class_2196;method_44257(Lnet/minecraft/class_2168;Lnet/minecraft/class_2196$class_2197;)Ljava/util/concurrent/CompletableFuture;
named method_44258
Lnet/minecraft/command/argument/MessageArgumentType;method_44258(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/MessageArgumentType$MessageFormat;)Ljava/util/concurrent/CompletableFuture;
-
method_44261
- Specified by:
method_44261
in interfaceclass_7517<MessageArgumentType.MessageFormat>
- Mappings:
Namespace Name Mixin selector official b
Len;b()Ljava/lang/Class;
intermediary method_44261
Lnet/minecraft/class_7517;method_44261()Ljava/lang/Class;
named method_44261
Lnet/minecraft/class_7517;method_44261()Ljava/lang/Class;
-
method_44260
static void method_44260(ServerCommandSource serverCommandSource, CompletableFuture<?> completableFuture) - Mappings:
Namespace Name Mixin selector official a
Lef;a(Ldr;Ljava/util/concurrent/CompletableFuture;)V
intermediary method_44260
Lnet/minecraft/class_2196;method_44260(Lnet/minecraft/class_2168;Ljava/util/concurrent/CompletableFuture;)V
named method_44260
Lnet/minecraft/command/argument/MessageArgumentType;method_44260(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/concurrent/CompletableFuture;)V
-