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
- Mappings:
Namespace Name official dwm
intermediary net/minecraft/class_359
named net/minecraft/client/gui/hud/SubtitlesHud
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SubtitlesHud.SubtitleEntry
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClient
client
private boolean
enabled
private List<SubtitlesHud.SubtitleEntry>
entries
private static long
field_32214
Fields 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 void
onSoundPlayed(SoundInstance sound, WeightedSoundSet soundSet)
void
render(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, method_35719, method_35720, setZOffset
-
Field Details
-
field_32214
private static final long field_32214- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official a
Ldwm;a:J
intermediary field_32214
Lnet/minecraft/class_359;field_32214:J
named field_32214
Lnet/minecraft/client/gui/hud/SubtitlesHud;field_32214:J
-
client
- Mappings:
Namespace Name Mixin selector official b
Ldwm;b:Lduk;
intermediary field_2182
Lnet/minecraft/class_359;field_2182:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/gui/hud/SubtitlesHud;client:Lnet/minecraft/client/MinecraftClient;
-
entries
- Mappings:
Namespace Name Mixin selector official c
Ldwm;c:Ljava/util/List;
intermediary field_2183
Lnet/minecraft/class_359;field_2183:Ljava/util/List;
named entries
Lnet/minecraft/client/gui/hud/SubtitlesHud;entries:Ljava/util/List;
-
enabled
private boolean enabled- Mappings:
Namespace Name Mixin selector official d
Ldwm;d:Z
intermediary field_2184
Lnet/minecraft/class_359;field_2184:Z
named enabled
Lnet/minecraft/client/gui/hud/SubtitlesHud;enabled:Z
-
-
Constructor Details
-
SubtitlesHud
- Mappings:
Namespace Name Mixin selector official <init>
Ldwm;<init>(Lduk;)V
intermediary <init>
Lnet/minecraft/class_359;<init>(Lnet/minecraft/class_310;)V
named <init>
Lnet/minecraft/client/gui/hud/SubtitlesHud;<init>(Lnet/minecraft/client/MinecraftClient;)V
-
-
Method Details
-
render
- Mappings:
Namespace Name Mixin selector official a
Ldwm;a(Ldpg;)V
intermediary method_1957
Lnet/minecraft/class_359;method_1957(Lnet/minecraft/class_4587;)V
named render
Lnet/minecraft/client/gui/hud/SubtitlesHud;render(Lnet/minecraft/client/util/math/MatrixStack;)V
-
onSoundPlayed
- Specified by:
onSoundPlayed
in interfaceSoundInstanceListener
- Mappings:
Namespace Name Mixin selector official a
Lezr;a(Leys;Lezt;)V
intermediary method_4884
Lnet/minecraft/class_1145;method_4884(Lnet/minecraft/class_1113;Lnet/minecraft/class_1146;)V
named onSoundPlayed
Lnet/minecraft/client/sound/SoundInstanceListener;onSoundPlayed(Lnet/minecraft/client/sound/SoundInstance;Lnet/minecraft/client/sound/WeightedSoundSet;)V
-