buildRemapArtifacts

open fun buildRemapArtifacts(clientTxt: String, secondSource: String, mcUri: String, outMappings: String, outSymbolsDir: String)

Cross into the masking loader (mapping-io + tiny-remapper live only there) to assemble the remap mappings and reverse-remap the runtime jar into a mojmap symbol jar. Called by RemapCache during init on a non-mojmap runtime with no mcp.remap.* flags.

Parameters

clientTxt

path to the Mojang client mappings (client.txt)

secondSource

the runtime's CLASS names, which clientTxt cannot supply — told apart by extension. Either the fabric intermediary MAPPINGS jar (net.fabricmc:intermediary:<ver>:v2), read for its mappings/mappings.tiny, or spigot BuildData's bukkit-<ver>-cl.csrg. NOT a Minecraft jar either way; the jar that gets reverse-remapped is mcUri.

mcUri

CodeSource URI of the runtime Minecraft jar — the LOADER's view of it, so on FML a union: URI whose overlaid binpatches are part of what gets reverse-remapped

outMappings

output path for the assembled mappings

outSymbolsDir

output directory for the generated mojmap symbol jar(s)

Throws

if masking-loader init or artifact building fails