
RealBench: Nomi-CEu-Edition
对 RealBench 的重写,修复了许多错误和故障!
依赖项:
功能:
- 包含 RealBench 的所有功能,包括:
- 物品保留在合成台中
- 合成台中的物品会渲染在最上层
- 其他玩家可以协作合成并查看进度
- 破坏合成台时会掉落物品
- RealBench 从底层重新构建,具备以下特点:
- 使用 Mixins 替代 ASM,提供更好的兼容性和更易于阅读的代码
- 专注于性能和模组兼容性
- 使用 RFG 构建脚本
- 一个活跃的 GitHub 仓库!
- 根据上方的方块计算渲染时的光照,而不需要将合成台设为透明方块
- 修复了服务器端物品复制漏洞,以及其他边缘情况的服务器错误和故障
- 修复了进入合成台时配方结果不显示的问题
- 与 FastWorkbench 兼容,并与 Universal Tweaks 配合良好
- 拥有 RealBench 的世界中,合成台内的物品会正确转移
- 在独立环境、配备 FastBench 或 Universal Tweaks 的环境以及整合包环境(Nomi-CEu 和 Nomifactory)中经过大量测试
内部工作原理:
光照计算
为了基于正确的光照环境渲染物品,其光照计算逻辑来自 GregTech CEu。
结果同步
该模组非常谨慎地同步打开相同合成台的不同客户端之间的结果。
Tile Entity(区块实体)存储了合成矩阵中的物品列表。每个工作台容器为各自玩家存储当前的矩阵,这是计算结果的基础。每个游戏刻(tick),如果 Tile Entity 被标记为脏数据(dirty),则会检查每个容器以查看其矩阵是否发生变化;如果发生了变化,则更新配方结果。每当玩家离开合成台时,对应的容器会从列表中移除。(出于某些原因,Minecraft 每次玩家进入界面时都会创建一个新的容器)这一机制具有极高的性能,尤其是在搭配 Fast Workbench 或 Universal Tweaks 的合成缓存功能时表现更佳。
当玩家进入合成台时,也会重新计算结果。
当合成发生时,Tile Entity 会通知每个容器清除结果槽位。
致谢:

RealBench: Nomi-CEu-Edition
Rewrite of RealBench, fixing many bugs and glitches!
Dependencies:
Features:
- All features of RealBench, including:
- Items stay in the Crafting Table
- Items in the Crafting Table are rendered on top
- Other players can collaborate on crafts and see the progress
- Items dropped when Crafting Table is broken
- RealBench re-built from the ground up, with:
- Mixins instead of ASM, allowing for better compatability and easier readability
- Focus on performance and mod compatability
- RFG Buildscripts
- A GitHub Repo that isn't dead!
- Calculates the light on the render based on the block above, instead of having to make the Crafting Table a transparent block
- Fixes a server dupe glitch, as well as more edge case server bugs and glitches
- Fixed the issue where the recipe result would not show up when entering crafting table
- Compatability with FastWorkbench, works well with Universal Tweaks
- Items in the Crafting Table in worlds with RealBench will transfer correctly
- Tested heavily in standalone environments, environments with FastBench or Universal Tweaks, and in modpack environments (Nomi-CEu and Nomifactory)
Internal Workings:
Light Calculation
The light calculation in order to render items based on the correct lighting environment is from GregTech CEu.
Syncing Result
This mod very carefully synchronizes the result between different clients with the same Crafting Table open.
The Tile Entity stores a list of the items in the crafting matrix. Each player container of the workbench stores the current matrix for them, which is what the result is based on. Each tick, if the tile has been marked dirty, each container is checked to see if the matrix has changed for them, and if it has, the recipe result is updated. Whenever a player exits the crafting bench, that container is removed from the list. (For some reason, MC creates a new container each time the player enters the inventory) This has very high performance, especially with Fast Workbench or Universal Tweaks' Crafting Cache Feature.
The result is also calculated each time the player enters the Crafting Table.
When a craft occurs, the Tile Entity tells each container to clear the result slot.
Credits:
评论 0
登录后参与评分
还没有评论,来抢沙发吧