跳到正文

Lattice API [DISCONTINUED]

作者:Ethyl

Lattice API is a lightweight NeoForge modding framework that removes boilerplate and streamlines content creation. It provides simple, unified tools for registering blocks, items, tags and more!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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] 支持哪些 Minecraft 版本?

Lattice API [DISCONTINUED] 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Lattice API [DISCONTINUED] 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分