Lattice API
Lattice API 是一个轻量级、对开发者友好的框架,旨在让 NeoForge 上的 Minecraft 模组开发变得更加简单、快速且井然有序。 该 API 提供了一个清晰统一的底层基础,处理 Minecraft 模组开发中重复性的样板代码,使模组作者能够专注于功能特性而非基础设施。
无论你是正在创建小型附加内容(addon),还是构建拥有数百个物品和方块的庞大模组,Lattice API 都能通过提供自动注册工具、简化的实例创建以及一致的 API 模式来减少代码冗余,从而优化你的工作流程。
这个 API 能做什么?
尽管 Lattice API 本身不添加任何新内容,但它内置了许多基础类和实用工具,使得创建和注册新的方块、物品以及其他更多内容变得简单易行!Lattice API 支持各种类型的实例,包括:
- 物品 (Items)
- 方块 (Blocks)
- 标签 (Tags,用于方块和物品)
- 创造模式标签页 (Creative tabs)
- 自动数据生成 (Automatic data generation)
该 API 的设计初衷是让模组开发者不仅能使用内置类,还能通过使用自定义类和实例来扩展 API,从而添加更多样化的内容,同时保留高度的可定制性!请注意,该 API 目前仍处于早期开发阶段,尚未包含大量内容!该 API 本身不会自动添加任何内容。
模块化与可扩展性
该 API 的设计初衷是让模组开发者不仅能使用内置类,还能通过使用自定义类和实例来扩展 API,从而添加更多样化的内容!
为什么我要使用 Lattice API?
这个 API 减少了你为模组编写样板代码的工作量。你可以直接创建物品,并分配堆叠数量、耐久度、火焰抗性等诸多属性! 得益于自动数据生成功能,你只需注册一个物品或方块,添加纹理,即可大功告成!
适合新手和高级模组开发者
API 背后的灵感源于模组开发入门可能相当棘手,这是我亲身经历过的。当我刚开始接触模组开发时,完全不知道自己在做什么,这让我感到沮丧。这激发了我创建此 API 的动力,以便无论经验多少,每个人都能享受将创意变为现实的过程!
文档
由于该模组仍在积极开发中,目前尚无完整文档(Discord 中仅有一份简短指南)。如需协助将该 API 集成到你的模组中,请访问我们的 Discord 服务器。
Lattice API
The Lattice API is a lightweight, developer-friendly framework designed to make minecraft modding on NeoForge easier, faster and far more organized. The API provides a clean, unified base layer that handles the repetitive boilerplate of Minecraft mod development, allows mod authors to focus on features rather than infrastructure.
Whether you're creating a small add-on or building a large mod with hundreds of items and blocks, the Lattice API streamlines your workflow by offering automatic registration utilities, simplified instance creation and consistent API patterns that reduce your code duplication.
What does this API do?
Altough the Lattice API does not add new content by itself, it comes included with many base classes and utilities that make it simple to create, and register new blocks, items and a lot more! The Lattice API supports all kind of instances, including:
- Items
- Blocks
- Tags (for blocks and items)
- Creative tabs
- Automatic data generation
The API is designed so mod developers can not only use the built-in classes, but also extend the API using custom classes and instances, adding an even wider variety of content to add, all while retaining the customizability! Please keep in mind that the API is currently in it's early stages of development, and does not contain a lot of content yet! The API does not add stuff by itself.
Modular and extensible
The API is designed so mod developers can not only use the built-in classes, but also extend the API using custom classes and instances, adding an even wider variety of content to add!
Why should I use the Lattice API?
This API reduces the amount of boilerplating you need to do for your mod. You can create items directly, while assigning properties like stacksize, durability, fire resistance and a lot more! Because of the automatic data generation, all you have to do is register an item or block, add a texture, and you're good to go!
Ideal for both Beginners and Advanced Modders
The inspiration behind the API was that modding can be quite tricky to get into, as I have experienced myself. When I got into modding, I had no clue what I was doing, and this frustrated me. This inspired me to create this API, so everyone, no matter the amount of experience, can enjoy bringing their creation to life!
Documentation
As this mod is still heavily in development, the documentation does not exist yet (apart from a small guide in the Discord). For assistance integrating the API into your mod, please visit our Discord server.
下载 Lattice API [DISCONTINUED]
下载 Lattice API [DISCONTINUED]
下载 Lattice API [DISCONTINUED]
下载 Lattice API [DISCONTINUED]
下载 Lattice API [DISCONTINUED]
下载 Lattice API [DISCONTINUED]
下载 Lattice API [DISCONTINUED]
下载 Lattice API [DISCONTINUED]
下载 Lattice API [DISCONTINUED]
下载 Lattice API [DISCONTINUED]
更新日志
- 对所有内置注册表添加了冻结。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧