GenericCodeLibrary
by KSmc's Team
GenericCodeLibrary is a client-side code library from KSmc's Team that supplies shared utility classes and an event system for other mods.
What it does
The library holds common code that KSmc's Team uses across its client-side mods, so those mods do not each carry their own copy. Its utility classes are built around an event system modeled on Google Event, with events such as TimerEvent, GetOptionValueEvent and BlockLightingEvent. Fabric API is required, and the code is open source under the MIT License. Files cover Fabric, Forge and NeoForge for 1.21, with 1.0 for 1.21 as the latest release.
Key features
Shared utility classes
Common helper code is grouped into utility classes that other client-side mods can call instead of duplicating it.
Event system
An event system based on Google Event lets mods subscribe to and fire named events between components.
Named client events
Events such as TimerEvent, GetOptionValueEvent and BlockLightingEvent cover timing, option reads and block lighting.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Questions
Does GenericCodeLibrary need Fabric API?
Does a server need GenericCodeLibrary?
In the catalog
GenericCodeLibrary is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 15,770 mods support Minecraft 1.21.
More from KSmc's Team
Similar mods
What the author says
GenericCodeLibrary is a Lib mod that includes some utility classes and an event system based on Google Event Bus. It features events such as TimerEvent, GetOptionValueEvent, BlockLightingEvent, etc., and contains the common code used in most of KSmc_brigade's client-side mods.
Official listing
- Modrinth page
- modrinth.com/mod/generic-code-library
- Owner
- KSmc's Team
- Published
- 2025-01-12
- Updated on Modrinth
- 2025-01-12
- Facts verified
- 2026-10-15
