AngelLib
AngelLib 1.0.0 替换了 FentLib。这是一个破坏性更新:请同时更新依赖此库的模组;不支持旧版包名、模组 ID、网络载荷(payloads)和配置路径。 一个共享代码库与微调/修复模组。

功能特性
- 支持动态 GIF 和 APNG 服务器图标。只需将
server-icon.gif或server-icon.apng文件(或动态server-icon.png)放入服务器根目录即可。大小限制可配置。HodgePodge 为软依赖,若需使用更大的 GIF 则必须安装(受限于数据包大小上限)。
使用 /reload_icon命令重新加载图标。同样适用于server-icon.png。 - 提供用于修改
S00PacketServerInfo数据包的 API。示例如下:
public class ClientProxy extends CommonProxy {
@Override
public void preInit(FMLPreInitializationEvent event) {
S00PacketServerInfoModifyService.registerDeserializeHandler((response, angellibData, serverData) -> {
if (angellibData.has("server_to_client_payload")) {
// 哇哦,我们收到了返回的数据!!!!
// serverData 包含诸如服务器 IP 等信息
}
});
}
}
```java
public class CommonProxy {
public void preInit(FMLPreInitializationEvent event) {
if (MiscUtil.isServer()) {
S00PacketServerInfoModifyService.registerHandler((response, angelLibPresent) -> {
// angelLibPresent 是一个布尔值,用于指示是否加载了 angellib
return "server_to_client_payload";
// 你可以返回一个 String、S00PacketServerInfoModifyService.KeyValue 或 JsonElement。如果返回非空值,它将被传递回客户端
});
}
}
}
-
/dump_thaumonomicon <可选注释>命令。从客户端运行它,所有 Thaumcraft 的研究成果将以静态网站的形式导出。注释将显示在页面标题下方,你可以注明此次导出所使用的整合包或模组。
-
/warpdim[dimension ID] 命令。无痛传送至某个维度(主要用于调试)。 -
SessionAccessTokenOverrideMixin允许通过-Dangellib.accessTokenOverride=<token>在开发启动时覆盖会话访问令牌。 -
客户端声音工具,用于在不提高音量的情况下设置自定义最大衰减距离。方法:
SoundUtil.withMaxDistance(ISound sound, float maxDistance);
SoundUtil.playWithMaxDistance(ISound sound, float maxDistance);
SoundUtil.playWithMaxDistance(SoundHandler soundHandler, ISound sound, float maxDistance);
SoundUtil.playAt(ResourceLocation soundResource, double x, double y, double z, float volume, float pitch, float maxDistance);
示例:
SoundUtil.playAt(waveSound, x, y, z, 0.25F, 1.0F, 64.0F);
- 用于本地 Web UI 的 HTTP-on-Minecraft-port 反向代理。在
config/angellib/http-port-routes.json中配置路径到端口的映射,以便通过服务器端口(例如/dynmap/...)而非单独的端口访问 Dynmap 等服务。 在config/angellib/angellib.cfg中设置publicBaseUrl为服务器的公开基础 URL;模组应在其基础上追加自己的相对路由路径。 - QOI 图像格式支持及工具,感谢 saharNooby/qoi-java。使用示例请参考
server-icon.qoi支持的实现方式。 - WebP 图像格式支持及工具,感谢 haraldk/TwelveMonkeys。使用示例请参考
server-icon.webp支持的实现方式。 - 默认服务器图标路径可通过
serverIconDirectory配置项进行设置。
钓鱼掉落配置
在 config/angellib/angellib.cfg 中设置 enableFishingLootTable=true 以启用 AngelLib 的钓鱼覆盖功能。掉落表位于 config/angellib/fishing-loot.json。启用后,原版仍会决定捕获物是 fish(鱼)、junk(杂物)还是 treasure(宝藏),但具体物品仅来自该 JSON 文件。
该 JSON 包含顶层的 fish、junk 和 treasure 列表。每个条目采用原版风格的 weight,支持 count 和 meta 的范围设置,可通过 biomes 限制为生物群系白名单,或通过 invertBiomes 反转为黑名单;生物群系选择器可以是数值 ID、生物群系名称或用于匹配任意生物群系的 *。条目还可以使用显式的数值附魔 ID,或使用 useVanillaEnchantingRules 以原版风格进行随机附魔。
{
"fish": [
{
"item": "minecraft:fish",
"weight": 60,
"count": { "min": 1, "max": 1 },
"meta": { "min": 0, "max": 0 }
},
{
"item": "minecraft:fish",
"weight": 10,
"count": { "min": 1, "max": 2 },
"meta": { "min": 1, "max": 1 },
"biomes": ["ocean", "river"]
}
]
}
补丁说明
- 移除模组列表界面中 EnderCore / HodgePodge 的信息按钮。
- LOTR 地图玩家头像支持现代皮肤。
- Better Questing 支持现代皮肤。
- 修复 Server Tools 在单人游戏中与 Wawel Auth 一起使用时导致的崩溃问题。
- Server Utilities 支持现代皮肤。
依赖项
构建方法
./gradlew build.
致谢
许可证
LGPLv3.
请我喝杯咖啡
- Monero:
893tQ56jWt7czBsqAGPq8J5BDnYVCg2tvKpvwTcMY1LS79iDabopdxoUzNLEZtRTH4ewAcKLJ4DM4V41fvrJGHgeKArxwmJ

AngelLib
AngelLib 1.0.0 replaces FentLib. This is a breaking release: update dependent mods together; old packages, mod IDs, network payloads, and configuration paths are not supported. A shared code library and tweak/fix mod.

Features
- Support for animated GIF and APNG server icons. Just drop a
server-icon.giforserver-icon.apngfile (or an animatedserver-icon.png) in the server root directory. Size limits are configurable. HodgePodge is a soft dependency, required if you want to use larger GIFs (because of the packet size limit).
Use the /reload_iconcommand to reload the icon. Also works forserver-icon.png. - API to modify the
S00PacketServerInfopacket. Example:
public class ClientProxy extends CommonProxy {
@Override
public void preInit(FMLPreInitializationEvent event) {
S00PacketServerInfoModifyService.registerDeserializeHandler((response, angellibData, serverData) -> {
if (angellibData.has("server_to_client_payload")) {
// Yoohoo we got something back!!!!
// serverData contains stuff like server IP
}
});
}
}
public class CommonProxy {
public void preInit(FMLPreInitializationEvent event) {
if (MiscUtil.isServer()) {
S00PacketServerInfoModifyService.registerHandler((response, angelLibPresent) -> {
// angelLibPresent is just a boolean indicating whether angellib is loaded
return "server_to_client_payload";
// You can return a String, a S00PacketServerInfoModifyService.KeyValue, or a JsonElement. If you return
// a non-null value, it will be passed back to the client
});
}
}
}
/dump_thaumonomicon <Optional Comment>command. Run it from the client, and all Thaumcraft research will be dumped as a static website. The comment will be visible under the page title, and you can indicate the pack or mods for with which the dump was done.
/warpdim[dimension ID] command. Painlessly warp to a dimension (meant for debugging).SessionAccessTokenOverrideMixinallows overriding the session access token in dev launches via-Dangellib.accessTokenOverride=<token>.- Client sound utilities to set a custom max attenuation distance without increasing the sound volume. Methods:
SoundUtil.withMaxDistance(ISound sound, float maxDistance);
SoundUtil.playWithMaxDistance(ISound sound, float maxDistance);
SoundUtil.playWithMaxDistance(SoundHandler soundHandler, ISound sound, float maxDistance);
SoundUtil.playAt(ResourceLocation soundResource, double x, double y, double z, float volume, float pitch, float maxDistance);
Example:
SoundUtil.playAt(waveSound, x, y, z, 0.25F, 1.0F, 64.0F);
- HTTP-on-Minecraft-port reverse proxying for local web UIs. Configure path-to-port mappings in
config/angellib/http-port-routes.jsonso services like Dynmap can be reached through the server port, such as/dynmap/..., instead of separate ports. SetpublicBaseUrlinconfig/angellib/angellib.cfgto the public base URL of the server; mods should append their own relative route paths on top of it. - QOI image format support and utils thanks to saharNooby/qoi-java. For usage example, check out how support for
server-icon.qoiis implemented. - WebP image format support and utils thanks to haraldk/TwelveMonkeys. For usage example, check out how support for
server-icon.webpis implemented. - Default server icon path can be configured using the
serverIconDirectoryconfig option.
Fishing Loot Config
Set enableFishingLootTable=true in config/angellib/angellib.cfg to enable AngelLib's fishing override. The loot table lives at config/angellib/fishing-loot.json. When enabled, vanilla still decides whether a catch is fish, junk, or treasure, but the item itself comes only from this JSON.
The JSON has top-level fish, junk, and treasure lists. Each entry uses vanilla-style weight, supports count and meta ranges, can be limited to a biome whitelist with biomes or inverted into a blacklist with invertBiomes, and biome selectors can be numeric IDs, biome names, or * to match any biome. Entries can also use explicit numeric enchant IDs or useVanillaEnchantingRules for vanilla-style random enchanting.
{
"fish": [
{
"item": "minecraft:fish",
"weight": 60,
"count": { "min": 1, "max": 1 },
"meta": { "min": 0, "max": 0 }
},
{
"item": "minecraft:fish",
"weight": 10,
"count": { "min": 1, "max": 2 },
"meta": { "min": 1, "max": 1 },
"biomes": ["ocean", "river"]
}
]
}
Patches
- Removal of EnderCore / HodgePodge Info Button in the mod list screen.
- LOTR map player face modern skin support.
- Better Questing modern skin support.
- Server Tools singleplayer crash with Wawel Auth fix.
- Server Utilities modern skin support.
Dependencies
Building
./gradlew build.
Credits
License
LGPLv3.
Buy me a coffee
- Monero:
893tQ56jWt7czBsqAGPq8J5BDnYVCg2tvKpvwTcMY1LS79iDabopdxoUzNLEZtRTH4ewAcKLJ4DM4V41fvrJGHgeKArxwmJ

下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
AngelLib 1.0.4
- 新增
FileUtil.pickSaveFile,通过原生对话框询问文件保存位置(与pickFile用于打开文件的用法一致),并在输入文件名未包含扩展名时自动添加。 - 自动化测试可通过设置系统属性
angellib.filePicker.next为指定路径,来响应下一个文件选择或保存对话框。 - 新增
ApngUtil,可将动画 PNG(APNG)读取为与 GIF 和动画 WebP 相同的帧与延迟数据;支持在读取时按需缩小尺寸,避免大型图片占用过多内存(不会将所有帧保持全尺寸加载);同时支持写入 APNG,仅存储帧间变化部分,可从数组逐帧写入,也可一次写入一帧。 - 服务器图标可支持 APNG 格式:使用
server-icon.apng,或使用动态的server-icon.png(对未安装 AngelLib 的客户端仍显示为静态图标)。server-icon.gif优先级仍然最高。
AngelLib 1.0.3
- 动态服务器图标不再使用 Java 自带的 Base64 解码器进行解码,该解码器在搭载 AVX-512 VBMI 处理器的 Java 17.0.6 及更高版本中会作为有缺陷的机器代码运行(CVE-2026-114938,“Java4Shell”)。服务器列表中的每个服务器都会发送其图标,因此现在改用纯 Java 方式进行解码。此更改无法保护其他模组或 Java 本身:请更新 Java,或以
-XX:-UseBASE64Intrinsics启动 Java。
AngelLib 1.0.2
- AngelLib 客户端现在在握手阶段使用端口 0 标记其服务器列表 ping,而不是在主机名后添加后缀。通过主机名进行路由的中继(例如 e4mc)会拒绝该后缀,导致 AngelLib 客户端将每个 e4mc 世界显示为“未知服务器”。服务器端仍会识别来自旧版客户端的后缀。
- 修复了本应仅发送给 AngelLib 客户端(例如 Wawel Auth)的额外服务器列表数据随每次后续 ping 一并发送的问题。
AngelLib 1.0.1
- 在启用 Et Futurum Requiem 的现代加载屏幕后,AngelLib 不再在正常游玩时关闭 ArchaicFix 的
MixinMinecraft,从而保留 ArchaicFix 的其他修复功能。其中一项修复会在窗口报告自身处于非活动状态时保持游戏全屏运行;因此在使用 lwjgl3ify 时,游戏无法维持全屏状态(#6)。这两个模组之间的冲突仅会导致 ArchaicFix 的工作屏幕失效,并伴随一条警告信息。AngelLib 仍在开发环境中解决该问题,因为在开发模式下 Mixin 的注入检查会阻止启动。
AngelLib 1.0.0
FentLib 现已更名为 AngelLib,成为 Angelic Industries 旗下的一部分。
- 破坏性更新: Java 包路径已变更为
industries.angelic.angellib;模组 ID 和资源/配置命名空间均为angellib。请一并更新所有依赖该模组的模组。 - Maven 坐标:
industries.angelic.angellib:AngelLib:1.0.0(开发环境请使用devclassifier)。 - 更新了徽标、Catalogue 动态背景、项目链接以及发布基础设施。
- 普通版本与 CurseForge 变体均采用了新的标识。
- 更新了开发依赖项及 GTNH 构建规范至 2.0.34 版本。Angelica 2.2.33 包含了启动所需的 glint mixin 验证修复。
现有的 FentLib 配置、集成内容以及网络负载不会自动迁移。历史版本的 FentLib 仍可获取。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧