Enum Class ChatPreviewMode

java.lang.Object
java.lang.Enum<ChatPreviewMode>
net.minecraft.client.option.ChatPreviewMode
All Implemented Interfaces:
Serializable, Comparable<ChatPreviewMode>, Constable, TranslatableOption

@Environment(CLIENT) public enum ChatPreviewMode extends Enum<ChatPreviewMode> implements TranslatableOption
Mappings:
Namespace Name
official evg
intermediary net/minecraft/class_7628
named net/minecraft/client/option/ChatPreviewMode
  • Enum Constant Details

    • OFF

      public static final ChatPreviewMode OFF
      Mappings:
      Namespace Name Mixin selector
      official a Levg;a:Levg;
      intermediary field_39873 Lnet/minecraft/class_7628;field_39873:Lnet/minecraft/class_7628;
      named OFF Lnet/minecraft/client/option/ChatPreviewMode;OFF:Lnet/minecraft/client/option/ChatPreviewMode;
    • LIVE

      public static final ChatPreviewMode LIVE
      Mappings:
      Namespace Name Mixin selector
      official b Levg;b:Levg;
      intermediary field_39874 Lnet/minecraft/class_7628;field_39874:Lnet/minecraft/class_7628;
      named LIVE Lnet/minecraft/client/option/ChatPreviewMode;LIVE:Lnet/minecraft/client/option/ChatPreviewMode;
    • CONFIRM

      public static final ChatPreviewMode CONFIRM
      Mappings:
      Namespace Name Mixin selector
      official c Levg;c:Levg;
      intermediary field_39875 Lnet/minecraft/class_7628;field_39875:Lnet/minecraft/class_7628;
      named CONFIRM Lnet/minecraft/client/option/ChatPreviewMode;CONFIRM:Lnet/minecraft/client/option/ChatPreviewMode;
  • Field Details

    • VALUES

      private static final ChatPreviewMode[] VALUES
      Mappings:
      Namespace Name Mixin selector
      official d Levg;d:[Levg;
      intermediary field_39876 Lnet/minecraft/class_7628;field_39876:[Lnet/minecraft/class_7628;
      named VALUES Lnet/minecraft/client/option/ChatPreviewMode;VALUES:[Lnet/minecraft/client/option/ChatPreviewMode;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      official e Levg;e:I
      intermediary field_39877 Lnet/minecraft/class_7628;field_39877:I
      named id Lnet/minecraft/client/option/ChatPreviewMode;id:I
    • translationKey

      private final String translationKey
      Mappings:
      Namespace Name Mixin selector
      official f Levg;f:Ljava/lang/String;
      intermediary field_39878 Lnet/minecraft/class_7628;field_39878:Ljava/lang/String;
      named translationKey Lnet/minecraft/client/option/ChatPreviewMode;translationKey:Ljava/lang/String;
  • Constructor Details

    • ChatPreviewMode

      private ChatPreviewMode(int id, String translationKey)
      Mappings:
      Namespace Name Mixin selector
      official <init> Levg;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_7628;<init>(Ljava/lang/String;IILjava/lang/String;)V
      named <init> Lnet/minecraft/client/option/ChatPreviewMode;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static ChatPreviewMode[] 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 ChatPreviewMode 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
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface TranslatableOption
      Mappings:
      Namespace Name Mixin selector
      official b Lamk;b()Ljava/lang/String;
      intermediary method_7359 Lnet/minecraft/class_7291;method_7359()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/util/TranslatableOption;getTranslationKey()Ljava/lang/String;
    • getId

      public int getId()
      Specified by:
      getId in interface TranslatableOption
      Mappings:
      Namespace Name Mixin selector
      official a Lamk;a()I
      intermediary method_7362 Lnet/minecraft/class_7291;method_7362()I
      named getId Lnet/minecraft/util/TranslatableOption;getId()I
    • byId

      public static ChatPreviewMode byId(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Levg;a(I)Levg;
      intermediary method_44952 Lnet/minecraft/class_7628;method_44952(I)Lnet/minecraft/class_7628;
      named byId Lnet/minecraft/client/option/ChatPreviewMode;byId(I)Lnet/minecraft/client/option/ChatPreviewMode;