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.DrawContext drawContext, net.minecraft.entity.player.PlayerEntity player, net.minecraft.entity.LivingEntity mount, HeartBarContext heartBarContext)
     
  • Method Details

    • render

      void render(net.minecraft.client.gui.DrawContext drawContext, net.minecraft.entity.player.PlayerEntity player, net.minecraft.entity.LivingEntity mount, HeartBarContext heartBarContext)
      Parameters:
      drawContext - Draw context
      player - The main player
      mount - The animal the player is riding (ex: pig, horse, camel)
      heartBarContext - Data associated with the mount heart bar.