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.

@FunctionalInterface public interface BossBarRenderer
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 Type
    Method
    Description
    int
    render(net.minecraft.client.gui.GuiGraphicsExtractor graphics, BossBarView bar, int y)
    Draws the bar with its top edge at y, centred across the screen (as the game's are).
  • Method Details

    • render

      int render(net.minecraft.client.gui.GuiGraphicsExtractor graphics, BossBarView bar, int y)
      Draws the bar with its top edge at y, centred across the screen (as the game's are).
      Returns:
      how much height it took, so the next bar goes below it