Enum Class MessageFormat.Parameter

java.lang.Object
java.lang.Enum<MessageFormat.Parameter>
net.minecraft.network.MessageFormat.Parameter
All Implemented Interfaces:
Serializable, Comparable<MessageFormat.Parameter>, Constable, StringIdentifiable
Enclosing class:
MessageFormat

public static enum MessageFormat.Parameter extends Enum<MessageFormat.Parameter> implements StringIdentifiable
A parameter for the translation text of a message format.
Mappings:
Namespace Name
official ra$a
intermediary net/minecraft/class_7463$class_7464
named net/minecraft/network/MessageFormat$Parameter
  • Enum Constant Details

    • SENDER

      public static final MessageFormat.Parameter SENDER
      Mappings:
      Namespace Name Mixin selector
      official a Lra$a;a:Lra$a;
      intermediary field_39220 Lnet/minecraft/class_7463$class_7464;field_39220:Lnet/minecraft/class_7463$class_7464;
      named SENDER Lnet/minecraft/network/MessageFormat$Parameter;SENDER:Lnet/minecraft/network/MessageFormat$Parameter;
    • TEAM_NAME

      public static final MessageFormat.Parameter TEAM_NAME
      Mappings:
      Namespace Name Mixin selector
      official b Lra$a;b:Lra$a;
      intermediary field_39221 Lnet/minecraft/class_7463$class_7464;field_39221:Lnet/minecraft/class_7463$class_7464;
      named TEAM_NAME Lnet/minecraft/network/MessageFormat$Parameter;TEAM_NAME:Lnet/minecraft/network/MessageFormat$Parameter;
    • CONTENT

      public static final MessageFormat.Parameter CONTENT
      Mappings:
      Namespace Name Mixin selector
      official c Lra$a;c:Lra$a;
      intermediary field_39222 Lnet/minecraft/class_7463$class_7464;field_39222:Lnet/minecraft/class_7463$class_7464;
      named CONTENT Lnet/minecraft/network/MessageFormat$Parameter;CONTENT:Lnet/minecraft/network/MessageFormat$Parameter;
  • Field Details

    • CODEC

      The codec for a message format parameter.
      Mappings:
      Namespace Name Mixin selector
      official d Lra$a;d:Lcom/mojang/serialization/Codec;
      intermediary field_39223 Lnet/minecraft/class_7463$class_7464;field_39223:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/network/MessageFormat$Parameter;CODEC:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official e Lra$a;e:Ljava/lang/String;
      intermediary field_39224 Lnet/minecraft/class_7463$class_7464;field_39224:Ljava/lang/String;
      named name Lnet/minecraft/network/MessageFormat$Parameter;name:Ljava/lang/String;
    • argumentFactory

      private final MessageFormat.Parameter.ArgumentFactory argumentFactory
      Mappings:
      Namespace Name Mixin selector
      official f Lra$a;f:Lra$a$a;
      intermediary field_39225 Lnet/minecraft/class_7463$class_7464;field_39225:Lnet/minecraft/class_7463$class_7464$class_7465;
      named argumentFactory Lnet/minecraft/network/MessageFormat$Parameter;argumentFactory:Lnet/minecraft/network/MessageFormat$Parameter$ArgumentFactory;
  • Constructor Details

    • Parameter

      private Parameter(String name, MessageFormat.Parameter.ArgumentFactory factory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lra$a;<init>(Ljava/lang/String;ILjava/lang/String;Lra$a$a;)V
      intermediary <init> Lnet/minecraft/class_7463$class_7464;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_7463$class_7464$class_7465;)V
      named <init> Lnet/minecraft/network/MessageFormat$Parameter;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/network/MessageFormat$Parameter$ArgumentFactory;)V
  • Method Details

    • values

      public static MessageFormat.Parameter[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MessageFormat.Parameter valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getArgument

      public Text getArgument(Text content, @Nullable @Nullable ChatMessageSender sender)
      Returns an argument for this parameter given the message content and sender.
      Returns:
      an argument for this parameter given the message content and sender
      Mappings:
      Namespace Name Mixin selector
      official a Lra$a;a(Lrf;Lrb;)Lrf;
      intermediary method_43837 Lnet/minecraft/class_7463$class_7464;method_43837(Lnet/minecraft/class_2561;Lnet/minecraft/class_7436;)Lnet/minecraft/class_2561;
      named getArgument Lnet/minecraft/network/MessageFormat$Parameter;getArgument(Lnet/minecraft/text/Text;Lnet/minecraft/network/ChatMessageSender;)Lnet/minecraft/text/Text;
    • asString

      public String asString()
      Specified by:
      asString in interface StringIdentifiable
      Mappings:
      Namespace Name Mixin selector
      official c Lall;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;