Package net.minecraft.network
Enum Class 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$aintermediary net/minecraft/class_7463$class_7464named net/minecraft/network/MessageFormat$Parameter
-
Nested Class Summary
Nested ClassesNested 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
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MessageFormat.Parameter.ArgumentFactorystatic final StringIdentifiable.Codec<MessageFormat.Parameter>The codec for a message format parameter.private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateParameter(String name, MessageFormat.Parameter.ArgumentFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionasString()getArgument(Text content, @Nullable ChatMessageSender sender) Returns an argument for this parameter given the message content and sender.static MessageFormat.ParameterReturns the enum constant of this class with the specified name.static MessageFormat.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 aLra$a;a:Lra$a;intermediary field_39220Lnet/minecraft/class_7463$class_7464;field_39220:Lnet/minecraft/class_7463$class_7464;named SENDERLnet/minecraft/network/MessageFormat$Parameter;SENDER:Lnet/minecraft/network/MessageFormat$Parameter;
-
TEAM_NAME
- Mappings:
Namespace Name Mixin selector official bLra$a;b:Lra$a;intermediary field_39221Lnet/minecraft/class_7463$class_7464;field_39221:Lnet/minecraft/class_7463$class_7464;named TEAM_NAMELnet/minecraft/network/MessageFormat$Parameter;TEAM_NAME:Lnet/minecraft/network/MessageFormat$Parameter;
-
CONTENT
- Mappings:
Namespace Name Mixin selector official cLra$a;c:Lra$a;intermediary field_39222Lnet/minecraft/class_7463$class_7464;field_39222:Lnet/minecraft/class_7463$class_7464;named CONTENTLnet/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 dLra$a;d:Lcom/mojang/serialization/Codec;intermediary field_39223Lnet/minecraft/class_7463$class_7464;field_39223:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/network/MessageFormat$Parameter;CODEC:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector official eLra$a;e:Ljava/lang/String;intermediary field_39224Lnet/minecraft/class_7463$class_7464;field_39224:Ljava/lang/String;named nameLnet/minecraft/network/MessageFormat$Parameter;name:Ljava/lang/String;
-
argumentFactory
- Mappings:
Namespace Name Mixin selector official fLra$a;f:Lra$a$a;intermediary field_39225Lnet/minecraft/class_7463$class_7464;field_39225:Lnet/minecraft/class_7463$class_7464$class_7465;named argumentFactoryLnet/minecraft/network/MessageFormat$Parameter;argumentFactory:Lnet/minecraft/network/MessageFormat$Parameter$ArgumentFactory;
-
-
Constructor Details
-
Parameter
- Mappings:
Namespace Name Mixin selector official <init>Lra$a;<init>(Ljava/lang/String;ILjava/lang/String;Lra$a$a;)Vintermediary <init>Lnet/minecraft/class_7463$class_7464;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_7463$class_7464$class_7465;)Vnamed <init>Lnet/minecraft/network/MessageFormat$Parameter;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/network/MessageFormat$Parameter$ArgumentFactory;)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
-
getArgument
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 aLra$a;a(Lrf;Lrb;)Lrf;intermediary method_43837Lnet/minecraft/class_7463$class_7464;method_43837(Lnet/minecraft/class_2561;Lnet/minecraft/class_7436;)Lnet/minecraft/class_2561;named getArgumentLnet/minecraft/network/MessageFormat$Parameter;getArgument(Lnet/minecraft/text/Text;Lnet/minecraft/network/ChatMessageSender;)Lnet/minecraft/text/Text;
-
asString
- Specified by:
asStringin interfaceStringIdentifiable- Mappings:
Namespace Name Mixin selector official cLall;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-