LogoLogo
  • Introduction
  • Documentation License
  • Modding Basics
  • Getting Started
  • Configuration
    • Creating a Config
    • Config Options
      • Boolean Configs
      • Number Configs
      • Selector Configs
      • Text Configs
      • Buttons, Colors and Keybinds
      • Decorative Components
      • Custom options
    • Migration
  • Events
    • Event Basics
    • Available Events
      • ChatReceiveEvent
      • TickEvent
      • InitializationEvent
      • HudRenderEvent
      • Packet Events
      • LocrawEvent
  • Graphics & UI
    • Render Manager
      • Font Rendering
    • Elements
    • Pages
  • Commands
    • Commands
    • An Example Command
  • HUDs
    • HUD Basics
  • Utilities
    • OneConfig's Utilities
      • Notifications
      • HypixelUtils
    • OneColor
    • OneUIScreen
Powered by GitBook
On this page

Was this helpful?

  1. Events
  2. Available Events

HudRenderEvent

Learn more about HudRenderEvent

HudRenderEvent is an event that is fired when the GameOverlay for Minecraft is rendered (things like the hotbar, sidebar, etc.)

You can use deltaTicks to access the time elapsed since the last tick occurred, which is useful for animations.

@Subscribe
public void onHudRender(HudRenderEvent event) {
    RenderManager.setupAndDraw((vg) -> {
        // draw a rounded rectangle on the screen
        RenderManager.drawRoundedRect(vg, 10, 50, 100, 100, -1, 12f);
    }
}
PreviousInitializationEventNextPacket Events

Last updated 2 years ago

Was this helpful?