Package net.minecraft.text
Enum Class 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 official rf$a
intermediary net/minecraft/class_7463$class_7464
named net/minecraft/text/Decoration$Parameter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A functional interface that selects the text from the passed values.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StringIdentifiable.Codec<Decoration.Parameter>
private final String
private final Decoration.Parameter.Selector
Fields inherited from interface net.minecraft.util.StringIdentifiable
field_38377
-
Constructor Summary
ModifierConstructorDescriptionprivate
Parameter
(String name, Decoration.Parameter.Selector selector) -
Method Summary
Modifier and TypeMethodDescriptionapply
(Text content, @Nullable MessageSender sender) Returns the text obtained by applying the passed values to the parameter.asString()
static Decoration.Parameter
Returns the enum constant of this class with the specified name.static Decoration.Parameter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SENDER
- Mappings:
Namespace Name Mixin selector official a
Lrf$a;a:Lrf$a;
intermediary field_39220
Lnet/minecraft/class_7463$class_7464;field_39220:Lnet/minecraft/class_7463$class_7464;
named SENDER
Lnet/minecraft/text/Decoration$Parameter;SENDER:Lnet/minecraft/text/Decoration$Parameter;
-
TEAM_NAME
- Mappings:
Namespace Name Mixin selector official b
Lrf$a;b:Lrf$a;
intermediary field_39221
Lnet/minecraft/class_7463$class_7464;field_39221:Lnet/minecraft/class_7463$class_7464;
named TEAM_NAME
Lnet/minecraft/text/Decoration$Parameter;TEAM_NAME:Lnet/minecraft/text/Decoration$Parameter;
-
CONTENT
- Mappings:
Namespace Name Mixin selector official c
Lrf$a;c:Lrf$a;
intermediary field_39222
Lnet/minecraft/class_7463$class_7464;field_39222:Lnet/minecraft/class_7463$class_7464;
named CONTENT
Lnet/minecraft/text/Decoration$Parameter;CONTENT:Lnet/minecraft/text/Decoration$Parameter;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official d
Lrf$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/text/Decoration$Parameter;CODEC:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector official e
Lrf$a;e:Ljava/lang/String;
intermediary field_39224
Lnet/minecraft/class_7463$class_7464;field_39224:Ljava/lang/String;
named name
Lnet/minecraft/text/Decoration$Parameter;name:Ljava/lang/String;
-
selector
- Mappings:
Namespace Name Mixin selector official f
Lrf$a;f:Lrf$a$a;
intermediary field_39225
Lnet/minecraft/class_7463$class_7464;field_39225:Lnet/minecraft/class_7463$class_7464$class_7465;
named selector
Lnet/minecraft/text/Decoration$Parameter;selector:Lnet/minecraft/text/Decoration$Parameter$Selector;
-
-
Constructor Details
-
Parameter
- Mappings:
Namespace Name Mixin selector official <init>
Lrf$a;<init>(Ljava/lang/String;ILjava/lang/String;Lrf$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/text/Decoration$Parameter;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/text/Decoration$Parameter$Selector;)V
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
apply
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 official a
Lrf$a;a(Lrm;Lri;)Lrm;
intermediary method_43837
Lnet/minecraft/class_7463$class_7464;method_43837(Lnet/minecraft/class_2561;Lnet/minecraft/class_7436;)Lnet/minecraft/class_2561;
named apply
Lnet/minecraft/text/Decoration$Parameter;apply(Lnet/minecraft/text/Text;Lnet/minecraft/network/message/MessageSender;)Lnet/minecraft/text/Text;
-
asString
- Specified by:
asString
in interfaceStringIdentifiable
- Mappings:
Namespace Name Mixin selector official c
Lamd;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;
-