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

    • EXAMPLES

      private static final Collection<String> 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 Lfn;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 Lfn;b:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
  • Constructor Details

    • MessageArgumentType

      public MessageArgumentType()
  • Method Details

    • message

      public static MessageArgumentType 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 Lfn;a()Lfn;
    • 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 Lfn;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lxv;
    • 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 Lfn;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 Lfn;a(Ljava/util/function/Consumer;Lew;Lyl;)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 Lfn;b(Ljava/util/function/Consumer;Lew;Lyl;)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 Lfn;a(Lew;Lyl;)Ljava/util/concurrent/CompletableFuture;
    • 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
      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 Lfn;a(Lcom/mojang/brigadier/StringReader;)Lfn$a;
    • parse

      public <S> MessageArgumentType.MessageFormat parse(com.mojang.brigadier.StringReader stringReader, @Nullable S s) 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
      named parse Lnet/minecraft/command/argument/MessageArgumentType;parse(Lcom/mojang/brigadier/StringReader;Ljava/lang/Object;)Lnet/minecraft/command/argument/MessageArgumentType$MessageFormat;
      intermediary method_61182 Lnet/minecraft/class_2196;method_61182(Lcom/mojang/brigadier/StringReader;Ljava/lang/Object;)Lnet/minecraft/class_2196$class_2197;
      official a Lfn;a(Lcom/mojang/brigadier/StringReader;Ljava/lang/Object;)Lfn$a;
    • getExamples

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