Package net.minecraft.client.option
Enum GraphicsMode
- All Implemented Interfaces:
Serializable,Comparable<GraphicsMode>,java.lang.constant.Constable
@Environment(CLIENT) public enum GraphicsMode extends Enum<GraphicsMode>
- Mappings:
Namespace Name official dqeintermediary net/minecraft/class_5365named 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
Fields Modifier and Type Field Description private intidprivate StringtranslationKeyprivate static GraphicsMode[]VALUES -
Constructor Summary
Constructors Modifier Constructor Description privateGraphicsMode(int id, String translationKey) -
Method Summary
Modifier and Type Method Description static GraphicsModebyId(int id)intgetId()StringgetTranslationKey()StringtoString()static GraphicsModevalueOf(String name)Returns the enum constant of this type with the specified name.static GraphicsMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FAST
- Mappings:
Namespace Name Mixin selector official aLdqe;a:Ldqe;intermediary field_25427Lnet/minecraft/class_5365;field_25427:Lnet/minecraft/class_5365;named FASTLnet/minecraft/client/option/GraphicsMode;FAST:Lnet/minecraft/client/option/GraphicsMode;
-
FANCY
- Mappings:
Namespace Name Mixin selector official bLdqe;b:Ldqe;intermediary field_25428Lnet/minecraft/class_5365;field_25428:Lnet/minecraft/class_5365;named FANCYLnet/minecraft/client/option/GraphicsMode;FANCY:Lnet/minecraft/client/option/GraphicsMode;
-
FABULOUS
- Mappings:
Namespace Name Mixin selector official cLdqe;c:Ldqe;intermediary field_25429Lnet/minecraft/class_5365;field_25429:Lnet/minecraft/class_5365;named FABULOUSLnet/minecraft/client/option/GraphicsMode;FABULOUS:Lnet/minecraft/client/option/GraphicsMode;
-
-
Field Details
-
VALUES
- Mappings:
Namespace Name Mixin selector official dLdqe;d:[Ldqe;intermediary field_25430Lnet/minecraft/class_5365;field_25430:[Lnet/minecraft/class_5365;named VALUESLnet/minecraft/client/option/GraphicsMode;VALUES:[Lnet/minecraft/client/option/GraphicsMode;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official eLdqe;e:Iintermediary field_25431Lnet/minecraft/class_5365;field_25431:Inamed idLnet/minecraft/client/option/GraphicsMode;id:I
-
translationKey
- Mappings:
Namespace Name Mixin selector official fLdqe;f:Ljava/lang/String;intermediary field_25432Lnet/minecraft/class_5365;field_25432:Ljava/lang/String;named translationKeyLnet/minecraft/client/option/GraphicsMode;translationKey:Ljava/lang/String;
-
-
Constructor Details
-
GraphicsMode
- Mappings:
Namespace Name Mixin selector official <init>Ldqe;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_5365;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLdqe;a()Iintermediary method_29591Lnet/minecraft/class_5365;method_29591()Inamed getIdLnet/minecraft/client/option/GraphicsMode;getId()I
-
getTranslationKey
- Mappings:
Namespace Name Mixin selector official bLdqe;b()Ljava/lang/String;intermediary method_29593Lnet/minecraft/class_5365;method_29593()Ljava/lang/String;named getTranslationKeyLnet/minecraft/client/option/GraphicsMode;getTranslationKey()Ljava/lang/String;
-
toString
- Overrides:
toStringin classEnum<GraphicsMode>- Mappings:
Namespace Name Mixin selector official toStringLdqe;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_5365;toString()Ljava/lang/String;named toStringLnet/minecraft/client/option/GraphicsMode;toString()Ljava/lang/String;
-
byId
- Mappings:
Namespace Name Mixin selector official aLdqe;a(I)Ldqe;intermediary method_29592Lnet/minecraft/class_5365;method_29592(I)Lnet/minecraft/class_5365;named byIdLnet/minecraft/client/option/GraphicsMode;byId(I)Lnet/minecraft/client/option/GraphicsMode;
-