Package net.minecraft.client.option
Enum Class GraphicsMode
- All Implemented Interfaces:
Serializable
,Comparable<GraphicsMode>
,Constable
,TranslatableOption
@Environment(CLIENT)
public enum GraphicsMode
extends Enum<GraphicsMode>
implements TranslatableOption
- Mappings:
Namespace Name official eqo
intermediary net/minecraft/class_5365
named net/minecraft/client/option/GraphicsMode
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final IntFunction<GraphicsMode>
private final int
private final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphicsMode
byId
(int id) int
getId()
toString()
static GraphicsMode
Returns the enum constant of this class with the specified name.static GraphicsMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from interface net.minecraft.util.TranslatableOption
getText
-
Enum Constant Details
-
FAST
- Mappings:
Namespace Name Mixin selector official a
Leqo;a:Leqo;
intermediary field_25427
Lnet/minecraft/class_5365;field_25427:Lnet/minecraft/class_5365;
named FAST
Lnet/minecraft/client/option/GraphicsMode;FAST:Lnet/minecraft/client/option/GraphicsMode;
-
FANCY
- Mappings:
Namespace Name Mixin selector official b
Leqo;b:Leqo;
intermediary field_25428
Lnet/minecraft/class_5365;field_25428:Lnet/minecraft/class_5365;
named FANCY
Lnet/minecraft/client/option/GraphicsMode;FANCY:Lnet/minecraft/client/option/GraphicsMode;
-
FABULOUS
- Mappings:
Namespace Name Mixin selector official c
Leqo;c:Leqo;
intermediary field_25429
Lnet/minecraft/class_5365;field_25429:Lnet/minecraft/class_5365;
named FABULOUS
Lnet/minecraft/client/option/GraphicsMode;FABULOUS:Lnet/minecraft/client/option/GraphicsMode;
-
-
Field Details
-
BY_ID
- Mappings:
Namespace Name Mixin selector official d
Leqo;d:Ljava/util/function/IntFunction;
intermediary field_25430
Lnet/minecraft/class_5365;field_25430:Ljava/util/function/IntFunction;
named BY_ID
Lnet/minecraft/client/option/GraphicsMode;BY_ID:Ljava/util/function/IntFunction;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official e
Leqo;e:I
intermediary field_25431
Lnet/minecraft/class_5365;field_25431:I
named id
Lnet/minecraft/client/option/GraphicsMode;id:I
-
translationKey
- Mappings:
Namespace Name Mixin selector official f
Leqo;f:Ljava/lang/String;
intermediary field_25432
Lnet/minecraft/class_5365;field_25432:Ljava/lang/String;
named translationKey
Lnet/minecraft/client/option/GraphicsMode;translationKey:Ljava/lang/String;
-
-
Constructor Details
-
GraphicsMode
- Mappings:
Namespace Name Mixin selector official <init>
Leqo;<init>(Ljava/lang/String;IILjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_5365;<init>(Ljava/lang/String;IILjava/lang/String;)V
named <init>
Lnet/minecraft/client/option/GraphicsMode;<init>(Ljava/lang/String;IILjava/lang/String;)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
-
getId
public int getId()- Specified by:
getId
in interfaceTranslatableOption
- Mappings:
Namespace Name Mixin selector official a
Lary;a()I
intermediary method_7362
Lnet/minecraft/class_7291;method_7362()I
named getId
Lnet/minecraft/util/TranslatableOption;getId()I
-
getTranslationKey
- Specified by:
getTranslationKey
in interfaceTranslatableOption
- Mappings:
Namespace Name Mixin selector official b
Lary;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;
-
toString
- Overrides:
toString
in classEnum<GraphicsMode>
-
byId
- Mappings:
Namespace Name Mixin selector official a
Leqo;a(I)Leqo;
intermediary method_29592
Lnet/minecraft/class_5365;method_29592(I)Lnet/minecraft/class_5365;
named byId
Lnet/minecraft/client/option/GraphicsMode;byId(I)Lnet/minecraft/client/option/GraphicsMode;
-