Package net.minecraft.network.chat
Enum Class ChatTypeDecoration.Parameter
java.lang.Object
java.lang.Enum<ChatTypeDecoration.Parameter>
net.minecraft.network.chat.ChatTypeDecoration.Parameter
- All Implemented Interfaces:
Serializable
,Comparable<ChatTypeDecoration.Parameter>
,Constable
,StringRepresentable
- Enclosing class:
- ChatTypeDecoration
public static enum ChatTypeDecoration.Parameter
extends Enum<ChatTypeDecoration.Parameter>
implements StringRepresentable
-
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.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ChatTypeDecoration.Parameter>
private final String
private final ChatTypeDecoration.Parameter.Selector
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Parameter
(String p_239588_, ChatTypeDecoration.Parameter.Selector p_239589_) -
Method Summary
Modifier and TypeMethodDescriptionselect
(Component p_241369_, ChatType.Bound p_241509_) static ChatTypeDecoration.Parameter
Returns the enum constant of this class with the specified name.static ChatTypeDecoration.Parameter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SENDER
-
TARGET
-
CONTENT
-
-
Field Details
-
CODEC
-
name
-
selector
-
-
Constructor Details
-
Parameter
-
-
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
-
select
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-