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
  • Field Details

    • EXAMPLES

      private static final Collection<String> 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

      public static MessageArgumentType 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 interface com.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

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>
    • toText

      public Text toText(MessageArgumentType.MessageFormat messageFormat)
      Specified by:
      toText in interface TextConvertibleArgumentType<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 interface DecoratableArgumentType<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

      public Class<MessageArgumentType.MessageFormat> getFormatClass()
      Specified by:
      getFormatClass in interface DecoratableArgumentType<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

      static void handleResolvingFailure(ServerCommandSource source, CompletableFuture<?> future)
      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