Pantry API
Pantry API is the shared integration library for Pantry on Fabric and NeoForge.
介绍
Pantry API
Pantry API is the shared integration library for Pantry on Fabric and NeoForge.
This is a library, not a standalone gameplay mod. Install it when Pantry or another mod lists it as a required dependency.
For Players
Install the Pantry API version that exactly matches your Pantry version. The same API jar works on both Fabric and NeoForge.
For Pantry 1.0.0-alpha.5, install Pantry API 1.0.0-alpha.5.
For Addon Developers
Pantry API provides supported integration points for:
- Registering custom foods and ingredients
- Reading freshness, food classification, and preservation state
- Carrying ingredient quality into crafting and machine outputs
- Settling food in custom storage
- Adding storage-environment and decay providers
Processing and storage operations are server-authoritative. The API intentionally does not expose Pantry’s internal item-data keys or unrestricted freshness mutation.
The alpha 5 API is experimental, but its package structure and read-only query model are intended to remain stable. Full guides and examples will move to the Pantry wiki.
Compatibility
- Minecraft Java Edition 26.2
- Fabric and NeoForge
- Client and dedicated server
- Java 25
常见问题
Pantry API 支持哪些 Minecraft 版本?
Pantry API 支持 Minecraft Java 版 26.2,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。
Pantry API 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
评论
登录后评论和评分