Class BlueLib

java.lang.Object
software.bluelib.BlueLib

public class BlueLib extends Object
The main class of the BlueLib mod.

This class serves as the entry point for the BlueLib mod, handling initialization by registering event handlers and setting up necessary configurations. For more details, refer to the BlueLib Wiki.

Key Methods:

Since:
1.0.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlueLib(net.neoforged.bus.api.IEventBus pModEventBus, net.neoforged.fml.ModContainer pModContainer)
    Constructs a new BlueLib instance and registers the mod event bus.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onLoadComplete(net.neoforged.fml.event.lifecycle.FMLLoadCompleteEvent pEvent)
    A public void that handles the FMLLoadCompleteEvent, which occurs when the mod finishes loading.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlueLib

      public BlueLib(net.neoforged.bus.api.IEventBus pModEventBus, net.neoforged.fml.ModContainer pModContainer)
      Constructs a new BlueLib instance and registers the mod event bus.

      Registers necessary mod event listeners, and if in developer mode, additional client-side listeners for rendering and attributes.

      Parameters:
      pModEventBus - IEventBus - The event bus where the mod registers its handlers.
      pModContainer - ModContainer - The mod container that holds the instance of the mod.
      Since:
      1.0.0
  • Method Details

    • onLoadComplete

      public void onLoadComplete(net.neoforged.fml.event.lifecycle.FMLLoadCompleteEvent pEvent)
      A public void that handles the FMLLoadCompleteEvent, which occurs when the mod finishes loading.
      Parameters:
      pEvent - FMLLoadCompleteEvent - The event fired after the mod loading process completes.
      Since:
      1.0.0