Class NarratorManager

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

@Environment(CLIENT) public class NarratorManager extends Object
Mappings:
Namespace Name
official efn
intermediary net/minecraft/class_333
named net/minecraft/client/util/NarratorManager
  • Field Details

    • EMPTY

      public static final Text EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lefn;a:Lrq;
      intermediary field_18967 Lnet/minecraft/class_333;field_18967:Lnet/minecraft/class_2561;
      named EMPTY Lnet/minecraft/client/util/NarratorManager;EMPTY:Lnet/minecraft/text/Text;
    • LOGGER

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

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

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

    • NarratorManager

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

    • narrateChatMessage

      public void narrateChatMessage(Supplier<Text> messageSupplier)
      Mappings:
      Namespace Name Mixin selector
      official a Lefn;a(Ljava/util/function/Supplier;)V
      intermediary method_44708 Lnet/minecraft/class_333;method_44708(Ljava/util/function/Supplier;)V
      named narrateChatMessage Lnet/minecraft/client/util/NarratorManager;narrateChatMessage(Ljava/util/function/Supplier;)V
    • narrate

      public void narrate(Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Lefn;a(Lrq;)V
      intermediary method_37015 Lnet/minecraft/class_333;method_37015(Lnet/minecraft/class_2561;)V
      named narrate Lnet/minecraft/client/util/NarratorManager;narrate(Lnet/minecraft/text/Text;)V
    • narrate

      public void narrate(String text)
      Mappings:
      Namespace Name Mixin selector
      official a Lefn;a(Ljava/lang/String;)V
      intermediary method_19788 Lnet/minecraft/class_333;method_19788(Ljava/lang/String;)V
      named narrate Lnet/minecraft/client/util/NarratorManager;narrate(Ljava/lang/String;)V
    • getNarratorOption

      private NarratorMode getNarratorOption()
      Mappings:
      Namespace Name Mixin selector
      official d Lefn;d()Lefw;
      intermediary method_20602 Lnet/minecraft/class_333;method_20602()Lnet/minecraft/class_4065;
      named getNarratorOption Lnet/minecraft/client/util/NarratorManager;getNarratorOption()Lnet/minecraft/client/option/NarratorMode;
    • debugPrintMessage

      private void debugPrintMessage(String message)
      Mappings:
      Namespace Name Mixin selector
      official b Lefn;b(Ljava/lang/String;)V
      intermediary method_37016 Lnet/minecraft/class_333;method_37016(Ljava/lang/String;)V
      named debugPrintMessage Lnet/minecraft/client/util/NarratorManager;debugPrintMessage(Ljava/lang/String;)V
    • addToast

      public void addToast(NarratorMode option)
      Mappings:
      Namespace Name Mixin selector
      official a Lefn;a(Lefw;)V
      intermediary method_1792 Lnet/minecraft/class_333;method_1792(Lnet/minecraft/class_4065;)V
      named addToast Lnet/minecraft/client/util/NarratorManager;addToast(Lnet/minecraft/client/option/NarratorMode;)V
    • isActive

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

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

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