@Environment(value=CLIENT) public class BossBarHud extends DrawableHelper
Modifier and Type | Field and Description |
---|---|
private static Identifier |
BARS_TEXTURE |
private Map<UUID,ClientBossBar> |
bossBars |
private MinecraftClient |
client |
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
BossBarHud(MinecraftClient client) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
handlePacket(BossBarS2CPacket packet) |
void |
render(MatrixStack matrices) |
private void |
renderBossBar(MatrixStack matrices,
int x,
int y,
BossBar bossBar) |
boolean |
shouldDarkenSky() |
boolean |
shouldPlayDragonMusic() |
boolean |
shouldThickenFog() |
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
private static final Identifier BARS_TEXTURE
private final MinecraftClient client
private final Map<UUID,ClientBossBar> bossBars
public BossBarHud(MinecraftClient client)
public void render(MatrixStack matrices)
private void renderBossBar(MatrixStack matrices, int x, int y, BossBar bossBar)
public void handlePacket(BossBarS2CPacket packet)
public void clear()
public boolean shouldPlayDragonMusic()
public boolean shouldDarkenSky()
public boolean shouldThickenFog()