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 emyintermediary 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
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<GraphicsMode>private final intprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphicsModebyId(int id) intgetId()toString()static GraphicsModeReturns 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, valueOfMethods inherited from interface net.minecraft.util.TranslatableOption
getText
-
Enum Constant Details
-
FAST
- Mappings:
Namespace Name Mixin selector official aLemy;a:Lemy;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 bLemy;b:Lemy;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 cLemy;c:Lemy;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
-
BY_ID
- Mappings:
Namespace Name Mixin selector official dLemy;d:Ljava/util/function/IntFunction;intermediary field_25430Lnet/minecraft/class_5365;field_25430:Ljava/util/function/IntFunction;named BY_IDLnet/minecraft/client/option/GraphicsMode;BY_ID:Ljava/util/function/IntFunction;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official eLemy;e:Iintermediary field_25431Lnet/minecraft/class_5365;field_25431:Inamed idLnet/minecraft/client/option/GraphicsMode;id:I
-
translationKey
- Mappings:
Namespace Name Mixin selector official fLemy;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>Lemy;<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 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:
getIdin interfaceTranslatableOption- Mappings:
Namespace Name Mixin selector official aLapc;a()Iintermediary method_7362Lnet/minecraft/class_7291;method_7362()Inamed getIdLnet/minecraft/util/TranslatableOption;getId()I
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceTranslatableOption- Mappings:
Namespace Name Mixin selector official bLapc;b()Ljava/lang/String;intermediary method_7359Lnet/minecraft/class_7291;method_7359()Ljava/lang/String;named getTranslationKeyLnet/minecraft/util/TranslatableOption;getTranslationKey()Ljava/lang/String;
-
toString
- Overrides:
toStringin classEnum<GraphicsMode>
-
byId
- Mappings:
Namespace Name Mixin selector official aLemy;a(I)Lemy;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;
-