Enum Class ChatLogEntry.Type
- All Implemented Interfaces:
Serializable,Comparable<ChatLogEntry.Type>,Constable,StringIdentifiable
- Enclosing interface:
ChatLogEntry
@Environment(CLIENT)
public static enum ChatLogEntry.Type
extends Enum<ChatLogEntry.Type>
implements StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/client/session/report/log/ChatLogEntry$Typeintermediary net/minecraft/class_7629$class_7854official hdt$a
-
Nested Class Summary
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 final Supplier<com.mojang.serialization.MapCodec<? extends ChatLogEntry>> private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateType(String id, Supplier<com.mojang.serialization.MapCodec<? extends ChatLogEntry>> codecSupplier) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.private com.mojang.serialization.MapCodec<? extends ChatLogEntry> getCodec()static ChatLogEntry.TypeReturns the enum constant of this class with the specified name.static ChatLogEntry.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER
- Mappings:
Namespace Name Mixin selector named PLAYERLnet/minecraft/client/session/report/log/ChatLogEntry$Type;PLAYER:Lnet/minecraft/client/session/report/log/ChatLogEntry$Type;intermediary field_40804Lnet/minecraft/class_7629$class_7854;field_40804:Lnet/minecraft/class_7629$class_7854;official aLhdt$a;a:Lhdt$a;
-
SYSTEM
- Mappings:
Namespace Name Mixin selector named SYSTEMLnet/minecraft/client/session/report/log/ChatLogEntry$Type;SYSTEM:Lnet/minecraft/client/session/report/log/ChatLogEntry$Type;intermediary field_40805Lnet/minecraft/class_7629$class_7854;field_40805:Lnet/minecraft/class_7629$class_7854;official bLhdt$a;b:Lhdt$a;
-
-
Field Details
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/client/session/report/log/ChatLogEntry$Type;id:Ljava/lang/String;intermediary field_40806Lnet/minecraft/class_7629$class_7854;field_40806:Ljava/lang/String;official cLhdt$a;c:Ljava/lang/String;
-
codecSupplier
- Mappings:
Namespace Name Mixin selector named codecSupplierLnet/minecraft/client/session/report/log/ChatLogEntry$Type;codecSupplier:Ljava/util/function/Supplier;intermediary field_40807Lnet/minecraft/class_7629$class_7854;field_40807:Ljava/util/function/Supplier;official dLhdt$a;d:Ljava/util/function/Supplier;
-
-
Constructor Details
-
Type
private Type(String id, Supplier<com.mojang.serialization.MapCodec<? extends ChatLogEntry>> codecSupplier) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/session/report/log/ChatLogEntry$Type;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)Vintermediary <init>Lnet/minecraft/class_7629$class_7854;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)Vofficial <init>Lhdt$a;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)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
-
getCodec
- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/client/session/report/log/ChatLogEntry$Type;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_46539Lnet/minecraft/class_7629$class_7854;method_46539()Lcom/mojang/serialization/MapCodec;official aLhdt$a;a()Lcom/mojang/serialization/MapCodec;
-
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 cLbhi;c()Ljava/lang/String;
-