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

InitializationEvent

Learn more about InitializationEvent

InitializationEvent is an event that is fired when the client launches and mods are loading.

If you are using OneConfig's configuration system, its a great place to initialize your config as well:

@Subscribe
public void init(InitializationEvent event) {
    System.out.println("The game is starting!");
    config = new MyConfig();    // initialize your config 
}
PreviousTickEventNextHudRenderEvent

Last updated 2 years ago

Was this helpful?