Cooldown Coordinator
用于帮助模组协调物品移动冷却时间的 Fabric 库
功能说明
Cooldown Coordinator 是一个库类模组,旨在使由原版漏斗和来自其他模组的方块实体组成的异构网络能够以类似原版且一致的方式在网络中移动物品。例如,其目标之一是让由原版漏斗、管道以及其他模组组件混合而成的分拣系统能够表现出可预测的行为。
工作原理
该模组提供了一个接口供实现,并提供了一个在触发冷却时间时应调用的方法。此方法可以安全地传入任何 BlockEntity(方块实体)作为参数。当目标方块实体实现了该接口时,它将收到冷却通知,并可采取其认为合适的行动。当安装此模组后,未重写 HBE(HopperBlockEntity)的 insert() 和 innermost transfer() 方法的 HopperBlockEntity 子类会自动实现该接口,并与其他实现了该接口的方块实体进行协调。
如何使用此库
有一些重要的细节(例如如何确定何时应触发冷却时间)是开发者必须正确处理的,否则协调机制将无法正常工作。请参阅库的 Javadoc 文档,或查看 wiki。
未来目标
我希望此模组或类似的方案能成为 Fabric API 的一部分。目前,它处于 RFC(征求意见稿)和 WIP(开发中)之间的状态。如果它能按预期工作并且 Fabric 社区对此感兴趣,我打算维护此模组,直到它成为 Fabric API 的一部分,或者出现更好的替代方案为止。
Cooldown Coordinator
Fabric library to help mods coordinate item movement cooldowns
What it Does
Cooldown Coordinator is a library mod intended to enable heterogeneous networks of vanilla hoppers and item transferring modded block entities to move items throughout the network in a vanilla-alike and consistent manner. For example, one goal is to allow sorters consisting of a mixture of vanilla and modded hoppers, ducts, etc. to behave predictably.
How Does it Do it?
The mod provides an interface to implement and a method to call when a cooldown should be triggered. The method may safely be called with any BlockEntity as its argument. When the target BE implements the interface, it will be notified of the cooldown and can take whatever action it deems appropriate. When this mod is installed, descendants of HopperBlockEntity which do not override HBE's insert() and innermost transfer() methods automatically implement the interface and will coordinate with other implementing BEs.
How to Use this Library
There are some important details (f.e. how to know when a cooldown should be triggered) which implementors need to get right in order for coordination to work properly. See the library's javadocs, or take a look at the wiki.
Future Goals
I would like this mod or something similar to be part of the Fabric API. At present, it is somewhere between an RFC and a WIP. If it performs as intended and there is interest from the Fabric community, I intend to maintain the mod until (and beyond) it becomes part of Fabric or something better comes along.
下载 Cooldown Coordinator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cooldown Coordinator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cooldown Coordinator
下载 Cooldown Coordinator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cooldown Coordinator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cooldown Coordinator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cooldown Coordinator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cooldown Coordinator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cooldown Coordinator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cooldown Coordinator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 稳定版,适用于 26.1+
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧