Butterfly API
Butterfly API 是我用于 Fabric 模组的一个简单辅助 API。
它主要旨在让我自己更方便,并允许将那些在我的项目中通常需要大量代码才能实现的功能,通过交由 Butterfly API 处理来变得更加紧凑。
新增内容
Butterfly API 为许多模组功能和系统提供了辅助支持,例如注册物品、方块、声音、实体、粒子、附魔、配方、状态效果以及其他基础内容。
此外,它还提供了一个非常深入的 Outline(轮廓)库,极大地扩展了原版发光效果的理念,现在可以将其应用于几乎任何对象,并提供更丰富的视觉控制选项,使外观完全符合你的需求。
它还包含了用于创造模式标签页、客户端设置、简单的游戏逻辑数学运算以及可复用的 plush(毛绒玩具)方块的辅助代码。
最后,还有一套完善的 Text(文本)功能系统,用于实现更多的颜色控制、渐变效果,以及对 Text 的旋转和镜像等功能;同时也包含一个简单的工具提示系统,用于扩展工具提示等显示效果。
Plushes(毛绒玩具)
Butterfly API 包含一个共享的 plush 系统,被我的部分模组所使用。
这使得添加小型可放置的 plush 方块变得更加轻松,支持方向朝向、淹水特性、鸣叫声音、挤压行为,以及可选的 GeckoLib 动画功能。
面向开发者
其他希望使用与我自己的模组中相同辅助系统的 Fabric 模组开发者,也可以使用 Butterfly API。
GitHub 页面提供了关于该 API、配置、使用方法以及在你自己的项目中使用的示例的更多信息。
GitHub:
Butterfly API
Butterfly API is a simple helper API for my Fabric mods.
It mostly exists to make things easier for me and allow things that would normally take a lot of code in my projects to be more compact by leaving it to Butterfly API to handle instead.
What It Adds
Butterfly API adds helper systems for many mod features and systems, like registering items, blocks, sounds, entities, particles, enchantments, recipes, status effects, and other basic content.
There's also a very in-depth Outline Library that heavily expands on the idea from the Glowing effect in vanilla, now allowing it to be applied to near-anything, and it also gives much more visual control to make things look exactly how you want them.
It also includes helper code for creative tabs, client setup, simple gameplay math, and reusable plush blocks.
Lastly there's also a large system in place for Text features, for things like more color control, gradients, and rotations and mirroring on Text, and there's also a simple system for tooltips aswell for expanding tooltips and such.
Plushes
Butterfly API includes a shared plush system used by some of my mods.
This makes it easier to add small placeable plush blocks with things like direction, waterlogging, honk sounds, squish behavior, and optional GeckoLib Animations.
For Developers
Butterfly API can be used by other Fabric mod developers who want access to the same helper systems I use in my own mods.
The GitHub page includes more information about the API, setup, usage, and examples for using it in your own project.
GitHub:
下载 Butterfly API
下载 Butterfly API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Butterfly API
下载 Butterfly API
下载 Butterfly API
下载 Butterfly API
下载 Butterfly API
下载 Butterfly API
下载 Butterfly API
下载 Butterfly API
更新了 Outline API 以支持更多物品,并大幅提升了 Outline 光影的性能。同时新增了一个新的数据驱动粒子系统。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
评论 0
登录后参与评分
还没有评论,来抢沙发吧