Package net.minecraft.client.option
Enum Class NarratorMode
- All Implemented Interfaces:
Serializable,Comparable<NarratorMode>,Constable
Contains the different narrator modes that control
which messages the narrator narrates.
- Mappings:
Namespace Name named net/minecraft/client/option/NarratorModeintermediary net/minecraft/class_4065official fgq
-
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<NarratorMode> private final intprivate final Text -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NarratorModebyId(int id) Returns the narrator mode matching the specified ID with wraparound.intgetId()Returns the unique int ID of this mode.getName()Returns the human-readable name of this mode.booleanChecks if this mode narrates chat messages.booleanChecks if this mode narrates system text.static NarratorModeReturns the enum constant of this class with the specified name.static NarratorMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
The narrator is disabled and narrates nothing.- Mappings:
Namespace Name Mixin selector named OFFLnet/minecraft/client/option/NarratorMode;OFF:Lnet/minecraft/client/option/NarratorMode;intermediary field_18176Lnet/minecraft/class_4065;field_18176:Lnet/minecraft/class_4065;official aLfgq;a:Lfgq;
-
ALL
- Mappings:
Namespace Name Mixin selector named ALLLnet/minecraft/client/option/NarratorMode;ALL:Lnet/minecraft/client/option/NarratorMode;intermediary field_18177Lnet/minecraft/class_4065;field_18177:Lnet/minecraft/class_4065;official bLfgq;b:Lfgq;
-
CHAT
The narrator narrates chat messages.- Mappings:
Namespace Name Mixin selector named CHATLnet/minecraft/client/option/NarratorMode;CHAT:Lnet/minecraft/client/option/NarratorMode;intermediary field_18178Lnet/minecraft/class_4065;field_18178:Lnet/minecraft/class_4065;official cLfgq;c:Lfgq;
-
SYSTEM
The narrator narrates system text, including screens.- Mappings:
Namespace Name Mixin selector named SYSTEMLnet/minecraft/client/option/NarratorMode;SYSTEM:Lnet/minecraft/client/option/NarratorMode;intermediary field_18179Lnet/minecraft/class_4065;field_18179:Lnet/minecraft/class_4065;official dLfgq;d:Lfgq;
-
-
Field Details
-
BY_ID
- Mappings:
Namespace Name Mixin selector named BY_IDLnet/minecraft/client/option/NarratorMode;BY_ID:Ljava/util/function/IntFunction;intermediary field_18180Lnet/minecraft/class_4065;field_18180:Ljava/util/function/IntFunction;official eLfgq;e:Ljava/util/function/IntFunction;
-
id
private final int id- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/client/option/NarratorMode;id:Iintermediary field_18181Lnet/minecraft/class_4065;field_18181:Iofficial fLfgq;f:I
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/client/option/NarratorMode;name:Lnet/minecraft/text/Text;intermediary field_24212Lnet/minecraft/class_4065;field_24212:Lnet/minecraft/class_2561;official gLfgq;g:Lwz;
-
-
Constructor Details
-
NarratorMode
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/option/NarratorMode;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_4065;<init>(Ljava/lang/String;IILjava/lang/String;)Vofficial <init>Lfgq;<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()Returns the unique int ID of this mode.- Returns:
- the unique int ID of this mode
- See Also:
- Mappings:
Namespace Name Mixin selector named getIdLnet/minecraft/client/option/NarratorMode;getId()Iintermediary method_18509Lnet/minecraft/class_4065;method_18509()Iofficial aLfgq;a()I
-
getName
Returns the human-readable name of this mode.- Returns:
- the human-readable name of this mode
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/client/option/NarratorMode;getName()Lnet/minecraft/text/Text;intermediary method_18511Lnet/minecraft/class_4065;method_18511()Lnet/minecraft/class_2561;official bLfgq;b()Lwz;
-
byId
Returns the narrator mode matching the specified ID with wraparound.- Returns:
- the narrator mode matching the specified ID with wraparound
- See Also:
- Mappings:
Namespace Name Mixin selector named byIdLnet/minecraft/client/option/NarratorMode;byId(I)Lnet/minecraft/client/option/NarratorMode;intermediary method_18510Lnet/minecraft/class_4065;method_18510(I)Lnet/minecraft/class_4065;official aLfgq;a(I)Lfgq;
-
shouldNarrateChat
public boolean shouldNarrateChat()Checks if this mode narrates chat messages.- Returns:
trueif chat messages are narrated,falseotherwise- See Also:
- Mappings:
Namespace Name Mixin selector named shouldNarrateChatLnet/minecraft/client/option/NarratorMode;shouldNarrateChat()Zintermediary method_44715Lnet/minecraft/class_4065;method_44715()Zofficial cLfgq;c()Z
-
shouldNarrateSystem
public boolean shouldNarrateSystem()Checks if this mode narrates system text.- Returns:
trueif system text is narrated,falseotherwise- See Also:
- Mappings:
Namespace Name Mixin selector named shouldNarrateSystemLnet/minecraft/client/option/NarratorMode;shouldNarrateSystem()Zintermediary method_44716Lnet/minecraft/class_4065;method_44716()Zofficial dLfgq;d()Z
-