@Environment(value=CLIENT) public class SubtitlesHud extends DrawableHelper implements SoundInstanceListener
Modifier and Type | Class and Description |
---|---|
class |
SubtitlesHud.SubtitleEntry |
Modifier and Type | Field and Description |
---|---|
private MinecraftClient |
client |
private boolean |
enabled |
private List<SubtitlesHud.SubtitleEntry> |
entries |
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
SubtitlesHud(MinecraftClient client) |
Modifier and Type | Method and Description |
---|---|
void |
onSoundPlayed(SoundInstance sound,
WeightedSoundSet soundSet) |
void |
render(MatrixStack matrices) |
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
private final MinecraftClient client
private final List<SubtitlesHud.SubtitleEntry> entries
private boolean enabled
public SubtitlesHud(MinecraftClient client)
public void render(MatrixStack matrices)
public void onSoundPlayed(SoundInstance sound, WeightedSoundSet soundSet)
onSoundPlayed
in interface SoundInstanceListener