yarn/mappings/net/minecraft/client/util/NarratorManager.mapping

41 lines
1.7 KiB
Plaintext

CLASS net/minecraft/class_333 net/minecraft/client/util/NarratorManager
COMMENT A bridge between Minecraft and {@link com.mojang.text2speech.Narrator}.
FIELD field_18210 LOGGER Lorg/slf4j/Logger;
FIELD field_18967 EMPTY Lnet/minecraft/class_2561;
COMMENT An empty text for narration.
FIELD field_2055 narrator Lcom/mojang/text2speech/Narrator;
FIELD field_39755 client Lnet/minecraft/class_310;
METHOD <init> (Lnet/minecraft/class_310;)V
ARG 1 client
METHOD method_1791 isActive ()Z
METHOD method_1792 onModeChange (Lnet/minecraft/class_4065;)V
COMMENT Narrates a message informing the user about a changed narration mode
COMMENT and displays it in a toast.
ARG 1 mode
COMMENT the new narrator mode
METHOD method_1793 clear ()V
METHOD method_19788 narrate (Ljava/lang/String;)V
COMMENT Narrates system text.
COMMENT
COMMENT @see NarratorMode#shouldNarrateSystem
ARG 1 text
COMMENT the text to narrate
METHOD method_20371 destroy ()V
METHOD method_20602 getNarratorMode ()Lnet/minecraft/class_4065;
COMMENT {@return the current narrator mode of the client}
METHOD method_37015 narrate (Lnet/minecraft/class_2561;)V
COMMENT Narrates system text.
COMMENT
COMMENT @see NarratorMode#shouldNarrateSystem
ARG 1 text
COMMENT the text to narrate
METHOD method_37016 debugPrintMessage (Ljava/lang/String;)V
COMMENT If the game is {@linkplain net.minecraft.SharedConstants#isDevelopment
COMMENT in a development environment}, logs a debug message for a narrated string.
ARG 1 message
COMMENT the narrated message
METHOD method_44708 narrateChatMessage (Lnet/minecraft/class_2561;)V
COMMENT Narrates a lazily supplied chat message.
COMMENT
COMMENT @see NarratorMode#shouldNarrateChat