LDLib2
一款现代化的 Minecraft 模组开发库,涵盖 UI、渲染、同步、持久化及游戏内编辑器功能。
Documentation | Java Integration | UI Guide | Discord | CurseForge | Modrinth
LDLib2 是对原版 LDLib 的全面重写,围绕现代 Minecraft 和 NeoForge 开发进行了重新设计。它为模组作者提供了一个更高层级的底层基础,用于构建 UI、游戏内工具、基于渲染器的内容、同步数据以及持久化运行时系统,无需在每个项目中重复构建相同的基础设施。
功能亮点
LDLib2 UI
使用 Taffy 驱动的布局、LSS 样式表、可复用组件、XML 定义、数据绑定、RPC 事件以及 HUD 覆盖层来构建 Minecraft 屏幕。
|

数据同步与持久化
通过注解 @Persisted、@DescSynced 以及 RPC 辅助方法,以极少的样板代码生成 NBT IO、编解码器(codecs)、脏字段同步和数据包传输流程。
|

节点图工具箱 (Node Graph Toolkit)
创建包含节点、端口、连线、变量、子图、黑板(blackboards)、可撤销命令以及基于资源的图资产的游戏内图形编辑器。
|

游戏内编辑器框架
构建类似 Unity、Blender 或 Blockbench 风格的工具,支持可停靠视图、项目文件、资源浏览器、检查器、历史记录、设置以及自定义编辑器面板。
|

Configurable
将带有注解的 Java 对象转换为可供检查器使用的属性面板,包括范围选择、下拉选择器、列表、资源位置、搜索框、撤销历史以及持久化支持。
|

渲染与集成
结合 LDLib2 的光影、纹理、模型渲染、场景和编辑器工具,并与 JEI、REI、EMI、KubeJS 以及 Java 插件入口点等常见模组开发工作流配合使用。
|
完整指南请参阅 UI 入门指南。
链接
许可
LDLib2 根据 LGPL-3.0 license 授权。
LDLib2
A modern Minecraft modding library for UI, rendering, synchronization, persistence, and in-game editors.
Documentation | Java Integration | UI Guide | Discord | CurseForge | Modrinth
LDLib2 is a complete rewrite of the original LDLib, redesigned around modern Minecraft and NeoForge development. It gives mod authors a higher-level foundation for building UI, in-game tools, renderer-backed content, synchronized data, and persistent runtime systems without rebuilding the same infrastructure in every project.
Feature Highlights
LDLib2 UI
Build Minecraft screens with Taffy-powered layout, LSS stylesheets, reusable components, XML definitions, data bindings, RPC events, and HUD overlays.
|

Data Synchronization and Persistence
Annotate fields with @Persisted, @DescSynced, and RPC helpers to generate NBT IO, codecs, dirty-field sync, and packet flow with minimal boilerplate.
|

Node Graph Toolkit
Create in-game graph editors with nodes, ports, wires, variables, subgraphs, blackboards, undoable commands, and resource-backed graph assets.
|

In-game Editor Framework
Build Unity-, Blender-, or Blockbench-style tools with dockable views, project files, resource browsers, inspectors, history, settings, and custom editor panels.
|

Configurable
Turn annotated Java objects into inspector-ready property panels, including ranges, selectors, lists, resource locations, search fields, undo history, and persistence.
|

Rendering and Integrations
Use LDLib2's shader, texture, model rendering, scene, and editor utilities together with common modding workflows such as JEI, REI, EMI, KubeJS, and Java plugin entry points.
|
For a full walkthrough, see the UI Getting Started guide.
Links
License
LDLib2 is licensed under the LGPL-3.0 license.
评论 0
登录后参与评分
还没有评论,来抢沙发吧