Enum Class GraphicsMode

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

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

    • FAST

      public static final GraphicsMode FAST
      Mappings:
      Namespace Name Mixin selector
      named FAST Lnet/minecraft/client/option/GraphicsMode;FAST:Lnet/minecraft/client/option/GraphicsMode;
      intermediary field_25427 Lnet/minecraft/class_5365;field_25427:Lnet/minecraft/class_5365;
      official a Lflx;a:Lflx;
    • FANCY

      public static final GraphicsMode FANCY
      Mappings:
      Namespace Name Mixin selector
      named FANCY Lnet/minecraft/client/option/GraphicsMode;FANCY:Lnet/minecraft/client/option/GraphicsMode;
      intermediary field_25428 Lnet/minecraft/class_5365;field_25428:Lnet/minecraft/class_5365;
      official b Lflx;b:Lflx;
    • FABULOUS

      public static final GraphicsMode FABULOUS
      Mappings:
      Namespace Name Mixin selector
      named FABULOUS Lnet/minecraft/client/option/GraphicsMode;FABULOUS:Lnet/minecraft/client/option/GraphicsMode;
      intermediary field_25429 Lnet/minecraft/class_5365;field_25429:Lnet/minecraft/class_5365;
      official c Lflx;c:Lflx;
  • Field Details

    • BY_ID

      private static final IntFunction<GraphicsMode> BY_ID
      Mappings:
      Namespace Name Mixin selector
      named BY_ID Lnet/minecraft/client/option/GraphicsMode;BY_ID:Ljava/util/function/IntFunction;
      intermediary field_25430 Lnet/minecraft/class_5365;field_25430:Ljava/util/function/IntFunction;
      official d Lflx;d:Ljava/util/function/IntFunction;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/option/GraphicsMode;id:I
      intermediary field_25431 Lnet/minecraft/class_5365;field_25431:I
      official e Lflx;e:I
    • translationKey

      private final String translationKey
      Mappings:
      Namespace Name Mixin selector
      named translationKey Lnet/minecraft/client/option/GraphicsMode;translationKey:Ljava/lang/String;
      intermediary field_25432 Lnet/minecraft/class_5365;field_25432:Ljava/lang/String;
      official f Lflx;f:Ljava/lang/String;
  • Constructor Details

    • GraphicsMode

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

    • values

      public static GraphicsMode[] 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 GraphicsMode 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
    • getId

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

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

      public String toString()
      Overrides:
      toString in class Enum<GraphicsMode>
    • byId

      public static GraphicsMode byId(int id)
      Mappings:
      Namespace Name Mixin selector
      named byId Lnet/minecraft/client/option/GraphicsMode;byId(I)Lnet/minecraft/client/option/GraphicsMode;
      intermediary method_29592 Lnet/minecraft/class_5365;method_29592(I)Lnet/minecraft/class_5365;
      official a Lflx;a(I)Lflx;