SLib
Slib is a closed-source infrastructure library for Forge 1.20.1 mods. It unifies advanced networking mechanics and security guards, ensuring total stability for all dependent mods without the need for constant maintenance updates.
介绍
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.
常见问题
SLib 支持哪些 Minecraft 版本?
SLib 支持 Minecraft Java 版 1.20.1–1.21.1,共 7 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
SLib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
ANTINIMUS 的其他作品
查看全部 →
Refresh Trades
Refresh villager and wandering trader offers directly from the trading screen with configurable payment, cooldowns, live button state preview and safer server-side validation.
Three’s Chances
Three hardcore chances with auto-respawn, configurable health per life, and a permanent final state when all lives are gone.
Balanced XP Bottler
Convert XP into vanilla Bottles o' Enchanting with configurable tax, cost, cooldown, and bulk stack conversion.
评论
登录后评论和评分