介绍
Nifty 是一个跨平台的库模组,为 Forge 和 Fabric 提供了简化的传输、机械、网络、用户界面等系统。如果您将此模组作为依赖项,不必担心下面的废话。
Nifty 被用作大多数其他模组的库,以简化跨平台开发并减少代码重复;它还引入了自己的系统,通过 Aspects 和传输功能大大地提高了实用性。
信息
欢迎在您自己的项目中使用 Nifty,作为模组的依赖项或在模组包中使用。查看 LICENSE 文件了解更多信息。我们也非常感谢贡献;如果您发现 Nifty 缺少您认为合适的功能,请在 issues 中告诉我们。
API 文档已经相当全面地记录在 [Javadoc](
特性(供开发者使用)
- Aspects
- 类似于 Forge 的能力和 Fabric API 查找的交叉系统
- 实现方式与能力非常相似;块实体等可以实现一个接口来提供一个 aspect
- 然后这些 aspects 被包装在一个惰性可选项中,就像 Forge 一样,并在它们失效时被识别
- 完整功能的基于模拟的物品、流体和能量传输系统
- 用于您自己系统的简单处理器实现
- FluidStack 系统,在 Forge 上被包装并延迟到 Fabric 上的 FluidVariants
- 对 Forge 和 Fabric 都有包装
- 完全支持的模组:在 Forge 上,使用默认的物品、流体和 FE 系统;在 Fabric 上,使用 Fabric API 传输系统
和 Team Reborn 的能量 API
- 还包括简单传输您自己自定义类型的抽象实现
- 组件 UI 系统(InputWidgets)从我的 Logic Networks API 中窃取,最终将会切换依赖于这个
- 一些渲染辅助方法
- 简化了机械创建的基础块实体、菜单和块实现
- 平台信息和工具、访问器等
- 简单数据包注册和处理的网络系统,类似于 Forge 的 SimpleImpl
- 更多功能正在开发中!
Forge 1.19.2-v1.1.0
* `RecipeIngredient` and implementations for more modular item, fluid ingredients etc.
* `RecipeOutput`, `RecipeOutputSet`, and item/fluid implementations
* `ModularRecipe` for recipes that can input/output fluids and items, and can require processing times/energy consumption
* `FluidStack#getTooltip`, along with a per-instance tooltip cache that is only created when it's queried for the first time.
* `FluidStack#setTag`, because I guess I forgot it before oops
* `Drawable` and its subclasses for configurable renderable things that aren't Gizmos - eventually Gizmos will be restructured to use this interface
* `Drawables` with a bunch of convenient drawable instances, such as slots, recipe arrows (with filling variants), burn indicators etc.
### Changed
* Moved some rendering things around, like `Texture` - now found among drawables.
* Some refactoring with gizmos to account for the above additions and changes.
Fabric 1.19.2-v1.1.0
* `RecipeIngredient` and implementations for more modular item, fluid ingredients etc.
* `RecipeOutput`, `RecipeOutputSet`, and item/fluid implementations
* `ModularRecipe` for recipes that can input/output fluids and items, and can require processing times/energy consumption
* `FluidStack#getTooltip`, along with a per-instance tooltip cache that is only created when it's queried for the first time.
* `FluidStack#setTag`, because I guess I forgot it before oops
* `Drawable` and its subclasses for configurable renderable things that aren't Gizmos - eventually Gizmos will be restructured to use this interface
* `Drawables` with a bunch of convenient drawable instances, such as slots, recipe arrows (with filling variants), burn indicators etc.
### Changed
* Moved some rendering things around, like `Texture` - now found among drawables.
* Some refactoring with gizmos to account for the above additions and changes.
Forge 1.19.2-v1.0.0
收录