Interface StatusBarOverlayRenderEvents.RenderMountHealthBarCallback

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.RenderMountHealthBarCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(net.minecraft.client.gui.GuiGraphics context, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.LivingEntity mount, org.joml.Vector2i[] mountHeartPositions, int displayMountHealth, int maxDisplayMountHealth)
     
  • Method Details

    • render

      void render(net.minecraft.client.gui.GuiGraphics context, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.LivingEntity mount, org.joml.Vector2i[] mountHeartPositions, int displayMountHealth, int maxDisplayMountHealth)
      Parameters:
      context - Draw context
      player - The main player
      mount - The animal the player is riding (ex: pig, horse, camel)
      mountHeartPositions - The positions of the hearts. Elements may be null, indicating that a heart should not be rendered at this index.
      displayMountHealth - How many half hearts are to be displayed
      maxDisplayMountHealth - The maximum number of half hearts to be displayed