Class ResourcePackExporter
java.lang.Object
net.chen.legacyLand.item.ResourcePackExporter
资源包 overrides 导出工具
输出格式(可直接嵌入 minecraft/models/item/.json 的 overrides 数组):
{
"glass_bottle": [
{ "predicate": { "custom_model_data": 1001 }, "model": "legacyland:item/mercury_thermometer" }
]
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic String构建 JSON 字符串static voidexportToFile(Path outputPath) 将注册表导出为资源包 overrides JSON,写入指定文件
-
Method Details
-
exportToFile
将注册表导出为资源包 overrides JSON,写入指定文件- Parameters:
outputPath- 输出文件路径,如 plugins/LegacyLand/overrides.json- Throws:
IOException
-
buildJson
构建 JSON 字符串
-