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>
,DecoratableArgumentType<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
Modifier and TypeClassDescriptionstatic class
static class
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection<String>
(package private) static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecorate
(ServerCommandSource serverCommandSource, MessageArgumentType.MessageFormat messageFormat) static Text
getMessage
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) getSignedMessage
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) (package private) static void
handleResolvingFailure
(ServerCommandSource source, CompletableFuture<?> future) static MessageArgumentType
message()
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.command.argument.DecoratableArgumentType
decorate
-
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;
-
LOGGER
static final org.slf4j.Logger LOGGER- 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 LOGGER
Lnet/minecraft/command/argument/MessageArgumentType;LOGGER: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.SignedMessage 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$SignedMessage;
-
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;
-
decorate
public CompletableFuture<Text> decorate(ServerCommandSource serverCommandSource, MessageArgumentType.MessageFormat messageFormat) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
decorate
in interfaceDecoratableArgumentType<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 decorate
Lnet/minecraft/command/argument/MessageArgumentType;decorate(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/MessageArgumentType$MessageFormat;)Ljava/util/concurrent/CompletableFuture;
-
getFormatClass
- Specified by:
getFormatClass
in interfaceDecoratableArgumentType<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 getFormatClass
Lnet/minecraft/command/argument/DecoratableArgumentType;getFormatClass()Ljava/lang/Class;
-
handleResolvingFailure
- 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 handleResolvingFailure
Lnet/minecraft/command/argument/MessageArgumentType;handleResolvingFailure(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/concurrent/CompletableFuture;)V
-