Class NarratorManager

java.lang.Object
net.minecraft.client.util.NarratorManager

@Environment(CLIENT) public class NarratorManager extends Object
A bridge between Minecraft and Narrator.
Mappings:
Namespace Name
named net/minecraft/client/util/NarratorManager
intermediary net/minecraft/class_333
official fez
  • Field Details

    • EMPTY

      public static final Text EMPTY
      An empty text for narration.
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/client/util/NarratorManager;EMPTY:Lnet/minecraft/text/Text;
      intermediary field_18967 Lnet/minecraft/class_333;field_18967:Lnet/minecraft/class_2561;
      official a Lfez;a:Lxp;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/util/NarratorManager;LOGGER:Lorg/slf4j/Logger;
      intermediary field_18210 Lnet/minecraft/class_333;field_18210:Lorg/slf4j/Logger;
      official b Lfez;b:Lorg/slf4j/Logger;
    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      named client Lnet/minecraft/client/util/NarratorManager;client:Lnet/minecraft/client/MinecraftClient;
      intermediary field_39755 Lnet/minecraft/class_333;field_39755:Lnet/minecraft/class_310;
      official c Lfez;c:Lffh;
    • narrator

      private final com.mojang.text2speech.Narrator narrator
      Mappings:
      Namespace Name Mixin selector
      named narrator Lnet/minecraft/client/util/NarratorManager;narrator:Lcom/mojang/text2speech/Narrator;
      intermediary field_2055 Lnet/minecraft/class_333;field_2055:Lcom/mojang/text2speech/Narrator;
      official d Lfez;d:Lcom/mojang/text2speech/Narrator;
  • Constructor Details

    • NarratorManager

      public NarratorManager(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/util/NarratorManager;<init>(Lnet/minecraft/client/MinecraftClient;)V
      intermediary <init> Lnet/minecraft/class_333;<init>(Lnet/minecraft/class_310;)V
      official <init> Lfez;<init>(Lffh;)V
  • Method Details

    • narrateChatMessage

      public void narrateChatMessage(Text text)
      Narrates a chat message.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named narrateChatMessage Lnet/minecraft/client/util/NarratorManager;narrateChatMessage(Lnet/minecraft/text/Text;)V
      intermediary method_44708 Lnet/minecraft/class_333;method_44708(Lnet/minecraft/class_2561;)V
      official a Lfez;a(Lxp;)V
    • narrateSystemMessage

      public void narrateSystemMessage(Text text)
      Narrates a system message.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named narrateSystemMessage Lnet/minecraft/client/util/NarratorManager;narrateSystemMessage(Lnet/minecraft/text/Text;)V
      intermediary method_47976 Lnet/minecraft/class_333;method_47976(Lnet/minecraft/class_2561;)V
      official b Lfez;b(Lxp;)V
    • narrate

      public void narrate(Text text)
      Narrates system text.
      Parameters:
      text - the text to narrate
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named narrate Lnet/minecraft/client/util/NarratorManager;narrate(Lnet/minecraft/text/Text;)V
      intermediary method_37015 Lnet/minecraft/class_333;method_37015(Lnet/minecraft/class_2561;)V
      official c Lfez;c(Lxp;)V
    • narrate

      public void narrate(String text)
      Narrates system text.
      Parameters:
      text - the text to narrate
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named narrate Lnet/minecraft/client/util/NarratorManager;narrate(Ljava/lang/String;)V
      intermediary method_19788 Lnet/minecraft/class_333;method_19788(Ljava/lang/String;)V
      official a Lfez;a(Ljava/lang/String;)V
    • getNarratorMode

      private NarratorMode getNarratorMode()
      Returns the current narrator mode of the client.
      Returns:
      the current narrator mode of the client
      Mappings:
      Namespace Name Mixin selector
      named getNarratorMode Lnet/minecraft/client/util/NarratorManager;getNarratorMode()Lnet/minecraft/client/option/NarratorMode;
      intermediary method_20602 Lnet/minecraft/class_333;method_20602()Lnet/minecraft/class_4065;
      official d Lfez;d()Lffj;
    • debugPrintMessage

      private void debugPrintMessage(String message)
      If the game is in a development environment, logs a debug message for a narrated string.
      Parameters:
      message - the narrated message
      Mappings:
      Namespace Name Mixin selector
      named debugPrintMessage Lnet/minecraft/client/util/NarratorManager;debugPrintMessage(Ljava/lang/String;)V
      intermediary method_37016 Lnet/minecraft/class_333;method_37016(Ljava/lang/String;)V
      official b Lfez;b(Ljava/lang/String;)V
    • onModeChange

      public void onModeChange(NarratorMode mode)
      Narrates a message informing the user about a changed narration mode and displays it in a toast.
      Parameters:
      mode - the new narrator mode
      Mappings:
      Namespace Name Mixin selector
      named onModeChange Lnet/minecraft/client/util/NarratorManager;onModeChange(Lnet/minecraft/client/option/NarratorMode;)V
      intermediary method_1792 Lnet/minecraft/class_333;method_1792(Lnet/minecraft/class_4065;)V
      official a Lfez;a(Lffj;)V
    • isActive

      public boolean isActive()
      Mappings:
      Namespace Name Mixin selector
      named isActive Lnet/minecraft/client/util/NarratorManager;isActive()Z
      intermediary method_1791 Lnet/minecraft/class_333;method_1791()Z
      official a Lfez;a()Z
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/client/util/NarratorManager;clear()V
      intermediary method_1793 Lnet/minecraft/class_333;method_1793()V
      official b Lfez;b()V
    • destroy

      public void destroy()
      Mappings:
      Namespace Name Mixin selector
      named destroy Lnet/minecraft/client/util/NarratorManager;destroy()V
      intermediary method_20371 Lnet/minecraft/class_333;method_20371()V
      official c Lfez;c()V
    • checkNarratorLibrary

      public void checkNarratorLibrary(boolean narratorEnabled)
      Mappings:
      Namespace Name Mixin selector
      named checkNarratorLibrary Lnet/minecraft/client/util/NarratorManager;checkNarratorLibrary(Z)V
      intermediary method_52183 Lnet/minecraft/class_333;method_52183(Z)V
      official a Lfez;a(Z)V