Enum Class NarratorMode

java.lang.Object
java.lang.Enum<NarratorMode>
net.minecraft.client.option.NarratorMode
All Implemented Interfaces:
Serializable, Comparable<NarratorMode>, Constable

@Environment(CLIENT) public enum NarratorMode extends Enum<NarratorMode>
Contains the different narrator modes that control which messages the narrator narrates.
Mappings:
Namespace Name
named net/minecraft/client/option/NarratorMode
intermediary net/minecraft/class_4065
official fgq
  • Enum Constant Details

    • OFF

      public static final NarratorMode OFF
      The narrator is disabled and narrates nothing.
      Mappings:
      Namespace Name Mixin selector
      named OFF Lnet/minecraft/client/option/NarratorMode;OFF:Lnet/minecraft/client/option/NarratorMode;
      intermediary field_18176 Lnet/minecraft/class_4065;field_18176:Lnet/minecraft/class_4065;
      official a Lfgq;a:Lfgq;
    • ALL

      public static final NarratorMode ALL
      The narrator narrates everything narrated in the CHAT and SYSTEM modes.
      Mappings:
      Namespace Name Mixin selector
      named ALL Lnet/minecraft/client/option/NarratorMode;ALL:Lnet/minecraft/client/option/NarratorMode;
      intermediary field_18177 Lnet/minecraft/class_4065;field_18177:Lnet/minecraft/class_4065;
      official b Lfgq;b:Lfgq;
    • CHAT

      public static final NarratorMode CHAT
      The narrator narrates chat messages.
      Mappings:
      Namespace Name Mixin selector
      named CHAT Lnet/minecraft/client/option/NarratorMode;CHAT:Lnet/minecraft/client/option/NarratorMode;
      intermediary field_18178 Lnet/minecraft/class_4065;field_18178:Lnet/minecraft/class_4065;
      official c Lfgq;c:Lfgq;
    • SYSTEM

      public static final NarratorMode SYSTEM
      The narrator narrates system text, including screens.
      Mappings:
      Namespace Name Mixin selector
      named SYSTEM Lnet/minecraft/client/option/NarratorMode;SYSTEM:Lnet/minecraft/client/option/NarratorMode;
      intermediary field_18179 Lnet/minecraft/class_4065;field_18179:Lnet/minecraft/class_4065;
      official d Lfgq;d:Lfgq;
  • Field Details

    • BY_ID

      private static final IntFunction<NarratorMode> BY_ID
      Mappings:
      Namespace Name Mixin selector
      named BY_ID Lnet/minecraft/client/option/NarratorMode;BY_ID:Ljava/util/function/IntFunction;
      intermediary field_18180 Lnet/minecraft/class_4065;field_18180:Ljava/util/function/IntFunction;
      official e Lfgq;e:Ljava/util/function/IntFunction;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/option/NarratorMode;id:I
      intermediary field_18181 Lnet/minecraft/class_4065;field_18181:I
      official f Lfgq;f:I
    • name

      private final Text name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/client/option/NarratorMode;name:Lnet/minecraft/text/Text;
      intermediary field_24212 Lnet/minecraft/class_4065;field_24212:Lnet/minecraft/class_2561;
      official g Lfgq;g:Lwz;
  • Constructor Details

    • NarratorMode

      private NarratorMode(int id, String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/option/NarratorMode;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_4065;<init>(Ljava/lang/String;IILjava/lang/String;)V
      official <init> Lfgq;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static NarratorMode[] 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

      public static NarratorMode valueOf(String name)
      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 name
      NullPointerException - 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 getId Lnet/minecraft/client/option/NarratorMode;getId()I
      intermediary method_18509 Lnet/minecraft/class_4065;method_18509()I
      official a Lfgq;a()I
    • getName

      public Text getName()
      Returns the human-readable name of this mode.
      Returns:
      the human-readable name of this mode
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/client/option/NarratorMode;getName()Lnet/minecraft/text/Text;
      intermediary method_18511 Lnet/minecraft/class_4065;method_18511()Lnet/minecraft/class_2561;
      official b Lfgq;b()Lwz;
    • byId

      public static NarratorMode byId(int id)
      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 byId Lnet/minecraft/client/option/NarratorMode;byId(I)Lnet/minecraft/client/option/NarratorMode;
      intermediary method_18510 Lnet/minecraft/class_4065;method_18510(I)Lnet/minecraft/class_4065;
      official a Lfgq;a(I)Lfgq;
    • 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
      named shouldNarrateChat Lnet/minecraft/client/option/NarratorMode;shouldNarrateChat()Z
      intermediary method_44715 Lnet/minecraft/class_4065;method_44715()Z
      official c Lfgq;c()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
      named shouldNarrateSystem Lnet/minecraft/client/option/NarratorMode;shouldNarrateSystem()Z
      intermediary method_44716 Lnet/minecraft/class_4065;method_44716()Z
      official d Lfgq;d()Z