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$a
intermediary net/minecraft/class_7463$class_7464
named 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.ArgumentFactory
static final StringIdentifiable.Codec<MessageFormat.Parameter>
The codec for a message format parameter.private final String
Fields inherited from interface net.minecraft.util.StringIdentifiable
field_38377
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Parameter
(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.Parameter
Returns 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 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
- 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
- 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
- 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
- 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
- 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
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 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
- Specified by:
asString
in interfaceStringIdentifiable
- 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;
-