Package software.bluelib
Class BlueLib
java.lang.Object
software.bluelib.BlueLib
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:
BlueLib(IEventBus, ModContainer)- Constructs theBlueLibinstance and registers the mod event bus.onLoadComplete(FMLLoadCompleteEvent)- Handles the event when the mod loading is complete.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBlueLib(net.neoforged.bus.api.IEventBus pModEventBus, net.neoforged.fml.ModContainer pModContainer) Constructs a newBlueLibinstance and registers the mod event bus. -
Method Summary
Modifier and TypeMethodDescriptionvoidonLoadComplete(net.neoforged.fml.event.lifecycle.FMLLoadCompleteEvent pEvent) Apublic voidthat handles theFMLLoadCompleteEvent, which occurs when the mod finishes loading.
-
Constructor Details
-
BlueLib
public BlueLib(net.neoforged.bus.api.IEventBus pModEventBus, net.neoforged.fml.ModContainer pModContainer) Constructs a newBlueLibinstance 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) Apublic voidthat handles theFMLLoadCompleteEvent, which occurs when the mod finishes loading.- Parameters:
pEvent-FMLLoadCompleteEvent- The event fired after the mod loading process completes.- Since:
- 1.0.0
-