Enum Class ChatLogEntry.Type

java.lang.Object
java.lang.Enum<ChatLogEntry.Type>
net.minecraft.client.report.log.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
official ffj$a
intermediary net/minecraft/class_7629$class_7854
named net/minecraft/client/report/log/ChatLogEntry$Type
  • Enum Constant Details

    • PLAYER

      public static final ChatLogEntry.Type PLAYER
      Mappings:
      Namespace Name Mixin selector
      official a Lffj$a;a:Lffj$a;
      intermediary field_40804 Lnet/minecraft/class_7629$class_7854;field_40804:Lnet/minecraft/class_7629$class_7854;
      named PLAYER Lnet/minecraft/client/report/log/ChatLogEntry$Type;PLAYER:Lnet/minecraft/client/report/log/ChatLogEntry$Type;
    • SYSTEM

      public static final ChatLogEntry.Type SYSTEM
      Mappings:
      Namespace Name Mixin selector
      official b Lffj$a;b:Lffj$a;
      intermediary field_40805 Lnet/minecraft/class_7629$class_7854;field_40805:Lnet/minecraft/class_7629$class_7854;
      named SYSTEM Lnet/minecraft/client/report/log/ChatLogEntry$Type;SYSTEM:Lnet/minecraft/client/report/log/ChatLogEntry$Type;
  • Field Details

    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      official c Lffj$a;c:Ljava/lang/String;
      intermediary field_40806 Lnet/minecraft/class_7629$class_7854;field_40806:Ljava/lang/String;
      named id Lnet/minecraft/client/report/log/ChatLogEntry$Type;id:Ljava/lang/String;
    • codecSupplier

      private final Supplier<StringIdentifiable.Codec<? extends ChatLogEntry>> codecSupplier
      Mappings:
      Namespace Name Mixin selector
      official d Lffj$a;d:Ljava/util/function/Supplier;
      intermediary field_40807 Lnet/minecraft/class_7629$class_7854;field_40807:Ljava/util/function/Supplier;
      named codecSupplier Lnet/minecraft/client/report/log/ChatLogEntry$Type;codecSupplier:Ljava/util/function/Supplier;
  • Constructor Details

    • Type

      private Type(String id, Supplier<StringIdentifiable.Codec<? extends ChatLogEntry>> codecSupplier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lffj$a;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)V
      intermediary <init> Lnet/minecraft/class_7629$class_7854;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)V
      named <init> Lnet/minecraft/client/report/log/ChatLogEntry$Type;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)V
  • Method Details

    • values

      public static ChatLogEntry.Type[] 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

      public static ChatLogEntry.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCodec

      private StringIdentifiable.Codec<? extends ChatLogEntry> getCodec()
      Mappings:
      Namespace Name Mixin selector
      official a Lffj$a;a()Lcom/mojang/serialization/Codec;
      intermediary method_46539 Lnet/minecraft/class_7629$class_7854;method_46539()Lcom/mojang/serialization/Codec;
      named getCodec Lnet/minecraft/client/report/log/ChatLogEntry$Type;getCodec()Lcom/mojang/serialization/Codec;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      official c Lapr;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;