Slib 作为必需依赖发布在 Modrinth 上。它本身不包含任何游戏玩法——它是该作者其他模组背后的基础设施引擎。其主要目的是彻底消除性能卡顿、优化网络性能,并让所有关联模组同时在一个高效统一的运行时环境中运行。
本模组是一个闭源库。它不打算供其他模组开发者使用。不提供源代码。公开存在的 Java API 是为了让作者自己的模组共享一个一致的引擎,而不是为了让第三方模组在其基础上进行开发。没有支持渠道,没有文档站点,不对面向外部使用者的 API 稳定性做出承诺,也没有公开的代码仓库。
最终用户:因为作者的某个模组需要 Slib,所以请安装它。你永远不会单独与 Slib 交互。
模组作者:不要依赖此库中的任何包。包结构、类名、数据包 ID、网络协议和配置键可能在任何小版本更新中更改,恕不另行通知。 主要特性
性能与同步优化:专为防止服务端卡顿、画面冻结和开销而设计,通过强制所有作者关联的模组同时共享统一、精简的内部系统来实现。
网络封装器:内置按模组分配的分配器、速率限制、游戏时间冷却保护、距离检查、发送者/方向验证,以及一个为所有玩家仅序列化一次的单一广播管道。
快照保护:严格的 NBT 和 JSON 大小限制、结构深度限制、NaN / Inf 值拒绝、畸形载荷检测,以及对恶意数据包的零分配清理。
严格的 API 隔离:在每个构建过程中通过自定义 Gradle 任务完全强制执行,以防止外部泄露。
数值清理器:用于有限值、正值、夹紧值和角度归一化值的内部辅助工具。
配置
Slib 不暴露配置界面。它是一个库,而非面向用户的模组。所有配置都是不可变的,直接编译进 jar 文件中,并在内部以常量形式暴露。
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
下载 SLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
测试版
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧