Package net.minecraft.client.util
Class NarratorManager
java.lang.Object
net.minecraft.client.util.NarratorManager
- All Implemented Interfaces:
ClientChatListener
- Mappings:
Namespace Name official egi
intermediary net/minecraft/class_333
named net/minecraft/client/util/NarratorManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToast
(NarratorMode option) void
clear()
private void
debugPrintMessage
(String message) void
destroy()
private static NarratorMode
boolean
isActive()
void
void
void
onChatMessage
(MessageType type, Text message, @Nullable MessageSender sender) Called when a message is received.
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Legi;a:Lrm;
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 org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official c
Legi;c: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;
-
INSTANCE
- Mappings:
Namespace Name Mixin selector official b
Legi;b:Legi;
intermediary field_2054
Lnet/minecraft/class_333;field_2054:Lnet/minecraft/class_333;
named INSTANCE
Lnet/minecraft/client/util/NarratorManager;INSTANCE:Lnet/minecraft/client/util/NarratorManager;
-
narrator
private final com.mojang.text2speech.Narrator narrator- Mappings:
Namespace Name Mixin selector official d
Legi;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()
-
-
Method Details
-
onChatMessage
Called when a message is received.- Specified by:
onChatMessage
in interfaceClientChatListener
- Parameters:
sender
- the chat message's sender, ornull
for game messages- Mappings:
Namespace Name Mixin selector official a
Legf;a(Lrj;Lrm;Lri;)V
intermediary method_1794
Lnet/minecraft/class_334;method_1794(Lnet/minecraft/class_2556;Lnet/minecraft/class_2561;Lnet/minecraft/class_7436;)V
named onChatMessage
Lnet/minecraft/client/gui/ClientChatListener;onChatMessage(Lnet/minecraft/network/message/MessageType;Lnet/minecraft/text/Text;Lnet/minecraft/network/message/MessageSender;)V
-
narrate
- Mappings:
Namespace Name Mixin selector official a
Legi;a(Lrm;)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
- Mappings:
Namespace Name Mixin selector official a
Legi;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
- Mappings:
Namespace Name Mixin selector official d
Legi;d()Leex;
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
- Mappings:
Namespace Name Mixin selector official b
Legi;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
- Mappings:
Namespace Name Mixin selector official a
Legi;a(Leex;)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
Legi;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
Legi;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
Legi;c()V
intermediary method_20371
Lnet/minecraft/class_333;method_20371()V
named destroy
Lnet/minecraft/client/util/NarratorManager;destroy()V
-