Class MessageArgumentType

java.lang.Object
net.minecraft.command.argument.MessageArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>

public class MessageArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<MessageArgumentType.MessageFormat>
Mappings:
Namespace Name
official ea
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 Lea;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

      public static MessageArgumentType message()
      Mappings:
      Namespace Name Mixin selector
      official a Lea;a()Lea;
      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> command, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lea;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lpz;
      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;
    • 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 Lea;a(Lcom/mojang/brigadier/StringReader;)Lea$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

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