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.DrawContext drawContext, net.minecraft.entity.player.PlayerEntity player, HeartBarContext heartBarContext) Note thatdisplayHealthandmaxDisplayHealthare not always the same as health and max health.
-
Method Details
-
render
void render(net.minecraft.client.gui.DrawContext drawContext, net.minecraft.entity.player.PlayerEntity 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:
drawContext- DrawContext for the HUDplayer- The player rendering hearts forheartBarContext- Data associated with the player heart bar.
-