Interface HudRenderComponent

All Known Implementing Classes:
HudRenderComponentPatternWheel, HudRenderComponentVeinMiningIcon

public interface HudRenderComponent
A simple component capable of being rendered on the Minecraft HUD.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(@NotNull net.minecraft.client.Minecraft client, @NotNull com.mojang.blaze3d.vertex.PoseStack stack, float tickDelta)
    Render the component to the given PoseStack.
    boolean
    shouldRender(@NotNull ClientConfig config)
    Check whether or not this component should be rendered to the screen.
  • Method Details

    • render

      void render(@NotNull @NotNull net.minecraft.client.Minecraft client, @NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack stack, float tickDelta)
      Render the component to the given PoseStack.
      Parameters:
      client - the client instance
      stack - the stack to which the hud is being rendered
      tickDelta - tick delta time
    • shouldRender

      boolean shouldRender(@NotNull @NotNull ClientConfig config)
      Check whether or not this component should be rendered to the screen.
      Parameters:
      config - the client configuration
      Returns:
      true if should be rendered, false otherwise