Enum Class Decoration.Parameter

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

public static enum Decoration.Parameter extends Enum<Decoration.Parameter> implements StringIdentifiable
Represents a parameter that the decoration uses.
Mappings:
Namespace Name
named net/minecraft/text/Decoration$Parameter
intermediary net/minecraft/class_7463$class_7464
official xm$a
  • Enum Constant Details

    • SENDER

      public static final Decoration.Parameter SENDER
      Mappings:
      Namespace Name Mixin selector
      named SENDER Lnet/minecraft/text/Decoration$Parameter;SENDER:Lnet/minecraft/text/Decoration$Parameter;
      intermediary field_39220 Lnet/minecraft/class_7463$class_7464;field_39220:Lnet/minecraft/class_7463$class_7464;
      official a Lxm$a;a:Lxm$a;
    • TARGET

      public static final Decoration.Parameter TARGET
      Mappings:
      Namespace Name Mixin selector
      named TARGET Lnet/minecraft/text/Decoration$Parameter;TARGET:Lnet/minecraft/text/Decoration$Parameter;
      intermediary field_39221 Lnet/minecraft/class_7463$class_7464;field_39221:Lnet/minecraft/class_7463$class_7464;
      official b Lxm$a;b:Lxm$a;
    • CONTENT

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

    • CODEC

      public static final com.mojang.serialization.Codec<Decoration.Parameter> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/text/Decoration$Parameter;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_39223 Lnet/minecraft/class_7463$class_7464;field_39223:Lcom/mojang/serialization/Codec;
      official d Lxm$a;d:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/text/Decoration$Parameter;name:Ljava/lang/String;
      intermediary field_39224 Lnet/minecraft/class_7463$class_7464;field_39224:Ljava/lang/String;
      official e Lxm$a;e:Ljava/lang/String;
    • selector

      private final Decoration.Parameter.Selector selector
      Mappings:
      Namespace Name Mixin selector
      named selector Lnet/minecraft/text/Decoration$Parameter;selector:Lnet/minecraft/text/Decoration$Parameter$Selector;
      intermediary field_39225 Lnet/minecraft/class_7463$class_7464;field_39225:Lnet/minecraft/class_7463$class_7464$class_7465;
      official f Lxm$a;f:Lxm$a$a;
  • Constructor Details

    • Parameter

      private Parameter(String name, Decoration.Parameter.Selector selector)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/text/Decoration$Parameter;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/text/Decoration$Parameter$Selector;)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
      official <init> Lxm$a;<init>(Ljava/lang/String;ILjava/lang/String;Lxm$a$a;)V
  • Method Details

    • values

      public static Decoration.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 Decoration.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
    • apply

      public Text apply(Text content, MessageType.Parameters params)
      Returns the text obtained by applying the passed values to the parameter.
      Returns:
      the text obtained by applying the passed values to the parameter
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/text/Decoration$Parameter;apply(Lnet/minecraft/text/Text;Lnet/minecraft/network/message/MessageType$Parameters;)Lnet/minecraft/text/Text;
      intermediary method_43837 Lnet/minecraft/class_7463$class_7464;method_43837(Lnet/minecraft/class_2561;Lnet/minecraft/class_2556$class_7602;)Lnet/minecraft/class_2561;
      official a Lxm$a;a(Lxp;Lxl$a;)Lxp;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lazu;c()Ljava/lang/String;