Puzzles Lib

Puzzles Lib

热度 1220339395
最近更新11 个月前
你问为什么它叫“Puzzles”?那就是这个谜题! Why it's called Puzzles, you a...

     

“谜题库”(Puzzles Lib)是我所有模组运行所需的核心库。你问它有什么作用?最重要的是,它为特定于模组加载器的代码提供了一系列抽象,这让我能非常轻松地同时在多个模组加载器上开发我所有的模组。

请注意,“谜题库”是专为我自己的需求设计的,并不打算供其他开发者使用。不过,欢迎其他开发者根据自身需求对我的实现进行调整。

▶️ 在通用项目中使用大多数 Forge 的 IModBusEvent 来设置你的模组。

▶️ 向《我的世界》的游戏注册表注册内容。

▶️ 只需使用 Java 的记录类型,即可在客户端与服务器之间自动序列化地发送消息。

▶️ 借助 Forge 的配置实现(在 Fabric 上由 Forge Config API Port 提供)创建基于注解的配置。

▶️ 使用 Forge 的能力系统以及 Fabric 上的 Cardinal Components,将自定义数据附加到实体、方块实体、区块和维度。

▶️ 直接在代码中加载时,对《我的世界》的生物群系进行大量修改。

客户端和服务器均需安装

需要安装 FABRIC API(Fabric)

需要安装 FORGE CONFIG API PORT(Fabric)


     

Puzzles Lib is the core library that all my mods need to run. What does it do you ask? Most importantly it offers a bunch of abstractions for mod loader-specific code, which makes it very easy for me to develop all of my mods on multiple mod loaders simultaneously.

Note that Puzzles Lib is specifically designed for my own needs, it is not intended to be used by other developers. Other developers are welcome to adapt my implementations for their own needs though.

▶️ Use most of Forge's IModBusEvents in the common project for setting up your mod.

▶️ Register content to Minecraft's game registries.

▶️ Send messages between client & server with auto-serialization by simply using Java's record type.

▶️ Create annotation-based configs backed by Forge's config implementation (provided by Forge Config API Port on Fabric).

▶️ Attach custom data to entities, block entities, chunks and levels using Forge's capability system and Cardinal Components on Fabric.

▶️ Apply extensive changes to Minecraft's biomes on loading directly in-code.

INSTALLATION REQUIRED ON CLIENT & REQUIRED ON SERVER

REQUIRES FABRIC API TO BE INSTALLED (FABRIC)

REQUIRES FORGE CONFIG API PORT TO BE INSTALLED (FABRIC)

本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。

评论区 (0)

登录 后才能发表评论

暂无评论

快来发表第一条评论吧!