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 named net/minecraft/text/Decoration$Parameterintermediary net/minecraft/class_7463$class_7464official ww$a
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA functional interface that selects the text from the passed parameters.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.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<Decoration.Parameter> static final com.mojang.serialization.Codec<Decoration.Parameter> private final intprivate final Stringstatic final PacketCodec<ByteBuf, Decoration.Parameter> private final Decoration.Parameter.SelectorFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateParameter(int id, String name, Decoration.Parameter.Selector selector) -
Method Summary
Modifier and TypeMethodDescriptionapply(Text content, MessageType.Parameters params) Returns the text obtained by applying the passed values to the parameter.asString()Returns the unique string representation of the enum, used for serialization.static Decoration.ParameterReturns 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 named SENDERLnet/minecraft/text/Decoration$Parameter;SENDER:Lnet/minecraft/text/Decoration$Parameter;intermediary field_39220Lnet/minecraft/class_7463$class_7464;field_39220:Lnet/minecraft/class_7463$class_7464;official aLww$a;a:Lww$a;
-
TARGET
- Mappings:
Namespace Name Mixin selector named TARGETLnet/minecraft/text/Decoration$Parameter;TARGET:Lnet/minecraft/text/Decoration$Parameter;intermediary field_39221Lnet/minecraft/class_7463$class_7464;field_39221:Lnet/minecraft/class_7463$class_7464;official bLww$a;b:Lww$a;
-
CONTENT
- Mappings:
Namespace Name Mixin selector named CONTENTLnet/minecraft/text/Decoration$Parameter;CONTENT:Lnet/minecraft/text/Decoration$Parameter;intermediary field_39222Lnet/minecraft/class_7463$class_7464;field_39222:Lnet/minecraft/class_7463$class_7464;official cLww$a;c:Lww$a;
-
-
Field Details
-
BY_ID
- Mappings:
Namespace Name Mixin selector named BY_IDLnet/minecraft/text/Decoration$Parameter;BY_ID:Ljava/util/function/IntFunction;intermediary field_51973Lnet/minecraft/class_7463$class_7464;field_51973:Ljava/util/function/IntFunction;official fLww$a;f:Ljava/util/function/IntFunction;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/Decoration$Parameter;CODEC:Lcom/mojang/serialization/Codec;intermediary field_39223Lnet/minecraft/class_7463$class_7464;field_39223:Lcom/mojang/serialization/Codec;official dLww$a;d:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/text/Decoration$Parameter;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51972Lnet/minecraft/class_7463$class_7464;field_51972:Lnet/minecraft/class_9139;official eLww$a;e:Lyx;
-
id
private final int id- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/text/Decoration$Parameter;id:Iintermediary field_51974Lnet/minecraft/class_7463$class_7464;field_51974:Iofficial gLww$a;g:I
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/text/Decoration$Parameter;name:Ljava/lang/String;intermediary field_39224Lnet/minecraft/class_7463$class_7464;field_39224:Ljava/lang/String;official hLww$a;h:Ljava/lang/String;
-
selector
- Mappings:
Namespace Name Mixin selector named selectorLnet/minecraft/text/Decoration$Parameter;selector:Lnet/minecraft/text/Decoration$Parameter$Selector;intermediary field_39225Lnet/minecraft/class_7463$class_7464;field_39225:Lnet/minecraft/class_7463$class_7464$class_7465;official iLww$a;i:Lww$a$a;
-
-
Constructor Details
-
Parameter
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/Decoration$Parameter;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/text/Decoration$Parameter$Selector;)Vintermediary <init>Lnet/minecraft/class_7463$class_7464;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/class_7463$class_7464$class_7465;)Vofficial <init>Lww$a;<init>(Ljava/lang/String;IILjava/lang/String;Lww$a$a;)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 named applyLnet/minecraft/text/Decoration$Parameter;apply(Lnet/minecraft/text/Text;Lnet/minecraft/network/message/MessageType$Parameters;)Lnet/minecraft/text/Text;intermediary method_43837Lnet/minecraft/class_7463$class_7464;method_43837(Lnet/minecraft/class_2561;Lnet/minecraft/class_2556$class_7602;)Lnet/minecraft/class_2561;official aLww$a;a(Lwz;Lwv$a;)Lwz;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLazk;c()Ljava/lang/String;
-