这是 YUNG's Fabric 模组系列中部分模组的库模组。它本质上是一个共享工具函数和数据抽象的集合。在 Minecraft 1.16.5 及以上版本中,所有 YUNG 模组均依赖此库。欢迎查看我的 CurseForge 主页以浏览我的全部作品!
致各位模组开发者——本库提供了大量实用功能,尤其是对于世界生成类模组开发者而言尤为有用!
该 API 包含以下内容:
- 自动注册系统(仅支持 1.18+)。无论使用何种加载器,只需添加简单注解即可注册任意字段。
- 对 Jigsaw Manager 的自定义重新实现,性能更优,并支持具有多种新属性的自定义池元素类型。请查看 Better Dungeons 的代码 以了解其实际效果。
- 新增用于安全定位任意结构的条件触发器。若指定结构不存在,触发器将直接失败而非立即通过(与原版行为不同)。
- 带有内置类型适配器的 JSON 序列化与反序列化接口。
- 简洁轻量的向量与列位置数学工具函数。
- BlockStateRandomizer 和 ItemRandomizer,这两种数据抽象能让你的结构中轻松实现方块与物品的随机化。我在自己的所有模组中都在使用它们!
如果你感兴趣,可以查看我的模组代码(尤其是较新的版本)来了解具体实现方式。也欢迎随时在 Discord 上向我提问!
Click here for NeoForge version
This is a library mod for some of YUNG's Fabric mods. It's basically a collection of shared utility functions and data abstractions.It is required for all YUNG mods on Minecraft 1.16.5+. Check out my CurseForge profile to see all my mods!
For all you mod devs out there - This provides a lot of useful stuff, especially if you're a worldgen modder!
The API includes the following:
- AutoRegistration system (1.18+ only). Register any field with only a simple annotation, regardless of mod loader!
- Custom reimplementation of Jigsaw Manager with improved performance and custom pool element types with various new properties. Check out the Better Dungeons code to see it in action.
- New criteria trigger for safely locating any structure. If the given structure doesn't exist, the trigger simply fails rather than instantly passing (unlike vanilla).
- Interfaces for JSON serialization & deserialization with built-in type adapters.
- Simple, lightweight math utilities for vectors and column positions
- BlockStateRandomizer and ItemRandomizer, data abstractions that make adding block and item randomization to your structures incredibly simple. I use these for all of my mods!
If you're curious, you can check the code for my mods (especially the newer ones) to see how things work. Feel free to ask me any questions on Discord!
下载 YUNG's API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 YUNG's API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 YUNG's API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 YUNG's API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 YUNG's API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 YUNG's API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 YUNG's API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 YUNG's API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 YUNG's API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 YUNG's API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 为替换原版结构提供 API,适用于诸如
/locate命令等结构定位工具。 - 修复对 ServiceLoader#load 的不安全调用。
如果你喜欢我的模组,请考虑在 Patreon!
加入我们的 Discord!
关注我在 Twitter 上的动态以获取更多模组更新!
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧