@Environment(value=CLIENT) public class NarratorManager extends Object implements ClientChatListener
Modifier and Type | Field and Description |
---|---|
static Text |
EMPTY |
static NarratorManager |
INSTANCE |
private static Logger |
LOGGER |
private com.mojang.text2speech.Narrator |
narrator |
Constructor and Description |
---|
NarratorManager() |
Modifier and Type | Method and Description |
---|---|
void |
addToast(NarratorMode option) |
void |
clear() |
void |
destroy() |
private static NarratorMode |
getNarratorOption() |
boolean |
isActive() |
private void |
narrate(boolean interrupt,
String message) |
void |
narrate(String text) |
void |
onChatMessage(MessageType messageType,
Text message,
UUID senderUuid) |
public static final Text EMPTY
private static final Logger LOGGER
public static final NarratorManager INSTANCE
private final com.mojang.text2speech.Narrator narrator
public void onChatMessage(MessageType messageType, Text message, UUID senderUuid)
onChatMessage
in interface ClientChatListener
public void narrate(String text)
private static NarratorMode getNarratorOption()
private void narrate(boolean interrupt, String message)
public void addToast(NarratorMode option)
public boolean isActive()
public void clear()
public void destroy()