Interface BossBarRenderer
- All Known Implementing Classes:
TexturedBossBar
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Draws a boss bar of one style (
BossBarRenderers.register(Identifier, BossBarRenderer)), in place of the game's, on the HUD at the top of
the screen. Bars stack down from the top as the game's do, each below the last.-
Method Summary
Modifier and TypeMethodDescriptionintrender(net.minecraft.client.gui.GuiGraphicsExtractor graphics, BossBarView bar, int y) Draws the bar with its top edge aty, centred across the screen (as the game's are).
-
Method Details
-
render
Draws the bar with its top edge aty, centred across the screen (as the game's are).- Returns:
- how much height it took, so the next bar goes below it
-