Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
Slib is published on Modrinth as a required dependency. It contains no gameplay on its own ā it is the infrastructure engine under the hood of the author's other mods. Its primary purpose is to completely eliminate performance lag, optimize network performance, and maintain all connected mods under a single, highly efficient runtime simultaneously.
This mod is a closed-source library. It is not intended for use by other mod developers. Source code is not provided. The public Java API exists so the author's own mods can share one consistent engine, not so that third-party mods can build on top of it. There is no support channel, no documentation site, no commitment to API stability for outside consumers, and no open repository.
End users: install Slib because one of the author's mods requires it. You will never interact with Slib on its own.
Mod authors: do not depend on any packages within this library. The package layout, class names, packet ids, network protocol, and configuration keys can change at any minor version without notice. Key features
Performance & Sync Optimization: Designed specifically to prevent server-side lag, freeze-frames, and overhead by forcing all of the author's connected mods to share unified, streamlined internal systems simultaneously.
Networking wrappers: built-in per-mod allocator, rate-limiting, game-time cooldown guards, distance checks, sender/direction validation, and a single broadcast pipeline that serializes once for all players.
Snapshot guards: strict NBT and JSON size limits, structural depth limits, NaN / Inf value rejection, malformed payload detection, and zero-allocation sanitization for malicious packets.
Strict API isolation: fully enforced by a custom Gradle task at every single build to prevent external leaks.
Number sanitizers: internal helpers for finite, positive, clamped, and angle-normalised values.
Configuration
Slib does not expose a configuration screen. It is a library, not a user-facing mod. All configuration is immutable, compiled directly into the jar, and exposed internally as constants.


