mc-compat-jei · v1.14.4 · 2026-09-14 · sha256 84d8bf2171afc2f2
mc-compat-jei v1.14.4A
Immutable. This exact content is served forever at /api/v1/blob/84d8bf2171afc2f2.
---
name: mc-compat-jei
description: Fabric JEI/REI 兼容。REI(Roughly Enough Items)插件开发。触发词:JEI、REI、RoughlyEnoughItems、Plugin
platform: fabric
version: "1.14.4"
dependencies: []
mappings: yarn
---
# JEI / REI 兼容(Fabric 1.14.4)
## 概述
Fabric 主要使用 **REI(Roughly Enough Items)** 作为物品管理器。JEI 主要在 Forge 中使用。
## 添加 REI 依赖
```groovy
dependencies {
modImplementation "com.github.shedaniel:RoughlyEnoughItems:TODO(未核实)" // 第三方库:maven.shedaniel.me me/shedaniel/RoughlyEnoughItems-fabric/maven-metadata.xml(2026-09-14 读,451 版,最低 6.0.277-alpha,无 9.1.618,无 1.14.4 档)未取证;REI 非加载器 API,方法签名须由用户自备 jar 走 ingest_loader_api 核实
}
```
## 创建 REI 插件
```java
// 1. 创建插件类
public class MyModPlugin implements REIPluginClient {
@Override
public void registerEntries(RegisterClientPluginsEvent event) {
// 注册条目
}
}
```
```json
// fabric.mod.json
{
"entrypoints": {
"rei_client": ["com.example.examplemod.MyModPlugin"]
},
"depends": {
"roughlyenoughitems": "*" // 1.14.4 时代 REI 版本未取证,见上方依赖注
}
}
```
## 常见错误
- ❌JEI 在 Fabric 中不常用 — 使用 REI 代替
- ❌忘记在 `fabric.mod.json` 中注册 entrypoint
## 扩展点
| 配合 Skill | 协作说明 |
|-----------|---------|
| `mc-registry` | REI 显示已注册物品 |
| `mc-item` | 物品可以在 REI 中显示 |