Package net.minecraft.client.gui.hud
Class SubtitlesHud
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.hud.SubtitlesHud
- All Implemented Interfaces:
SoundInstanceListener
@Environment(CLIENT) public class SubtitlesHud extends DrawableHelper implements SoundInstanceListener
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSubtitlesHud.SubtitleEntry -
Field Summary
Fields Modifier and Type Field Description private MinecraftClientclientprivate booleanenabledprivate List<SubtitlesHud.SubtitleEntry>entriesFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description SubtitlesHud(MinecraftClient client) -
Method Summary
Modifier and Type Method Description voidonSoundPlayed(SoundInstance sound, WeightedSoundSet soundSet)voidrender(MatrixStack matrices)Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
-
Field Details
-
client
-
entries
-
enabled
private boolean enabled
-
-
Constructor Details
-
SubtitlesHud
-
-
Method Details
-
render
-
onSoundPlayed
- Specified by:
onSoundPlayedin interfaceSoundInstanceListener
-