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 official evk
intermediary net/minecraft/class_4065
named net/minecraft/client/option/NarratorMode
-
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<NarratorMode>
private final int
private final Text
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NarratorMode
byId
(int id) Returns the narrator mode matching the specified ID with wraparound.int
getId()
Returns the unique int ID of this mode.getName()
Returns the human-readable name of this mode.boolean
Checks if this mode narrates chat messages.boolean
Checks if this mode narrates system text.static NarratorMode
Returns 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 official a
Levk;a:Levk;
intermediary field_18176
Lnet/minecraft/class_4065;field_18176:Lnet/minecraft/class_4065;
named OFF
Lnet/minecraft/client/option/NarratorMode;OFF:Lnet/minecraft/client/option/NarratorMode;
-
ALL
- Mappings:
Namespace Name Mixin selector official b
Levk;b:Levk;
intermediary field_18177
Lnet/minecraft/class_4065;field_18177:Lnet/minecraft/class_4065;
named ALL
Lnet/minecraft/client/option/NarratorMode;ALL:Lnet/minecraft/client/option/NarratorMode;
-
CHAT
The narrator narrates chat messages.- Mappings:
Namespace Name Mixin selector official c
Levk;c:Levk;
intermediary field_18178
Lnet/minecraft/class_4065;field_18178:Lnet/minecraft/class_4065;
named CHAT
Lnet/minecraft/client/option/NarratorMode;CHAT:Lnet/minecraft/client/option/NarratorMode;
-
SYSTEM
The narrator narrates system text, including screens.- Mappings:
Namespace Name Mixin selector official d
Levk;d:Levk;
intermediary field_18179
Lnet/minecraft/class_4065;field_18179:Lnet/minecraft/class_4065;
named SYSTEM
Lnet/minecraft/client/option/NarratorMode;SYSTEM:Lnet/minecraft/client/option/NarratorMode;
-
-
Field Details
-
BY_ID
- Mappings:
Namespace Name Mixin selector official e
Levk;e:Ljava/util/function/IntFunction;
intermediary field_18180
Lnet/minecraft/class_4065;field_18180:Ljava/util/function/IntFunction;
named BY_ID
Lnet/minecraft/client/option/NarratorMode;BY_ID:Ljava/util/function/IntFunction;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official f
Levk;f:I
intermediary field_18181
Lnet/minecraft/class_4065;field_18181:I
named id
Lnet/minecraft/client/option/NarratorMode;id:I
-
name
- Mappings:
Namespace Name Mixin selector official g
Levk;g:Lvf;
intermediary field_24212
Lnet/minecraft/class_4065;field_24212:Lnet/minecraft/class_2561;
named name
Lnet/minecraft/client/option/NarratorMode;name:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
NarratorMode
- Mappings:
Namespace Name Mixin selector official <init>
Levk;<init>(Ljava/lang/String;IILjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_4065;<init>(Ljava/lang/String;IILjava/lang/String;)V
named <init>
Lnet/minecraft/client/option/NarratorMode;<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 official a
Levk;a()I
intermediary method_18509
Lnet/minecraft/class_4065;method_18509()I
named getId
Lnet/minecraft/client/option/NarratorMode;getId()I
-
getName
Returns the human-readable name of this mode.- Returns:
- the human-readable name of this mode
- Mappings:
Namespace Name Mixin selector official b
Levk;b()Lvf;
intermediary method_18511
Lnet/minecraft/class_4065;method_18511()Lnet/minecraft/class_2561;
named getName
Lnet/minecraft/client/option/NarratorMode;getName()Lnet/minecraft/text/Text;
-
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 official a
Levk;a(I)Levk;
intermediary method_18510
Lnet/minecraft/class_4065;method_18510(I)Lnet/minecraft/class_4065;
named byId
Lnet/minecraft/client/option/NarratorMode;byId(I)Lnet/minecraft/client/option/NarratorMode;
-
shouldNarrateChat
public boolean shouldNarrateChat()Checks if this mode narrates chat messages.- Returns:
true
if chat messages are narrated,false
otherwise- See Also:
- Mappings:
Namespace Name Mixin selector official c
Levk;c()Z
intermediary method_44715
Lnet/minecraft/class_4065;method_44715()Z
named shouldNarrateChat
Lnet/minecraft/client/option/NarratorMode;shouldNarrateChat()Z
-
shouldNarrateSystem
public boolean shouldNarrateSystem()Checks if this mode narrates system text.- Returns:
true
if system text is narrated,false
otherwise- See Also:
- Mappings:
Namespace Name Mixin selector official d
Levk;d()Z
intermediary method_44716
Lnet/minecraft/class_4065;method_44716()Z
named shouldNarrateSystem
Lnet/minecraft/client/option/NarratorMode;shouldNarrateSystem()Z
-