Class ResourcePackExporter

java.lang.Object
net.chen.legacyLand.item.ResourcePackExporter

public final class ResourcePackExporter extends Object
资源包 overrides 导出工具 输出格式(可直接嵌入 minecraft/models/item/.json 的 overrides 数组): { "glass_bottle": [ { "predicate": { "custom_model_data": 1001 }, "model": "legacyland:item/mercury_thermometer" } ] }
  • Method Details

    • exportToFile

      public static void exportToFile(Path outputPath) throws IOException
      将注册表导出为资源包 overrides JSON,写入指定文件
      Parameters:
      outputPath - 输出文件路径,如 plugins/LegacyLand/overrides.json
      Throws:
      IOException
    • buildJson

      public static String buildJson()
      构建 JSON 字符串