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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidrender(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.player.Player player, HeartBarContext heartBarContext) Note thatdisplayHealthandmaxDisplayHealthare 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 thatdisplayHealthandmaxDisplayHealthare 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 HUDplayer- The player rendering hearts forheartBarContext- Data associated with the player heart bar.
-