Interface StatusBarOverlayRenderEvents.RenderHealthBarCallback

Enclosing class:
StatusBarOverlayRenderEvents
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 static interface StatusBarOverlayRenderEvents.RenderHealthBarCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.player.Player player, HeartBarContext heartBarContext)
    Note that displayHealth and maxDisplayHealth are not always the same as health and max health.
  • Method Details

    • render

      void render(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.player.Player player, HeartBarContext heartBarContext)
      Note that displayHealth and maxDisplayHealth are not always the same as health and max health. Mods that override the health bar rendering like Colorful Hearts may change these values.
      Parameters:
      graphics - Graphical draw context for the HUD
      player - The player rendering hearts for
      heartBarContext - Data associated with the player heart bar.