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>
Mappings:
Namespace Name
official eex
intermediary net/minecraft/class_4065
named net/minecraft/client/option/NarratorMode
  • Enum Constant Details

    • OFF

      public static final NarratorMode OFF
      Mappings:
      Namespace Name Mixin selector
      official a Leex;a:Leex;
      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

      public static final NarratorMode ALL
      Mappings:
      Namespace Name Mixin selector
      official b Leex;b:Leex;
      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

      public static final NarratorMode CHAT
      Mappings:
      Namespace Name Mixin selector
      official c Leex;c:Leex;
      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

      public static final NarratorMode SYSTEM
      Mappings:
      Namespace Name Mixin selector
      official d Leex;d:Leex;
      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

    • VALUES

      private static final NarratorMode[] VALUES
      Mappings:
      Namespace Name Mixin selector
      official e Leex;e:[Leex;
      intermediary field_18180 Lnet/minecraft/class_4065;field_18180:[Lnet/minecraft/class_4065;
      named VALUES Lnet/minecraft/client/option/NarratorMode;VALUES:[Lnet/minecraft/client/option/NarratorMode;
    • id

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

      private final Text name
      Mappings:
      Namespace Name Mixin selector
      official g Leex;g:Lrm;
      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

      private NarratorMode(int id, String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leex;<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

      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()
      Mappings:
      Namespace Name Mixin selector
      official a Leex;a()I
      intermediary method_18509 Lnet/minecraft/class_4065;method_18509()I
      named getId Lnet/minecraft/client/option/NarratorMode;getId()I
    • getName

      public Text getName()
      Mappings:
      Namespace Name Mixin selector
      official b Leex;b()Lrm;
      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

      public static NarratorMode byId(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Leex;a(I)Leex;
      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;
    • shouldNarrate

      public boolean shouldNarrate(MessageType.NarrationRule.Kind kind)
      Returns whether a message from the server should be narrated, given the message type's narration kind.
      Returns:
      whether a message from the server should be narrated, given the message type's narration kind
      Mappings:
      Namespace Name Mixin selector
      official a Leex;a(Lrj$a$a;)Z
      intermediary method_43766 Lnet/minecraft/class_4065;method_43766(Lnet/minecraft/class_2556$class_7466$class_7467;)Z
      named shouldNarrate Lnet/minecraft/client/option/NarratorMode;shouldNarrate(Lnet/minecraft/network/message/MessageType$NarrationRule$Kind;)Z