Class TinyV2
java.lang.Object
com.cleanroommc.gradle.api.names.TinyV2
Minimal Tiny v2 reader/writer for an SRG -> named mapping (two namespaces:
srg, named).
The writer joins a jar's structure (for descriptors) with the MCP CSV name lookups. The reader collapses a Tiny2 file back into flat SRG -> name maps for source-level renaming.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA constructor fromconstructors.txt: its param-number key (i<id>) and SRG descriptor.static final recordFlat SRG -> named lookups parsed from a Tiny2 file, plus member javadocs keyed by SRG id. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TinyV2.FlatNamesParses a Tiny2 file into flat SRG -> named maps.static Stringwrite(JarStructure structure, CsvNames names, Map<String, List<TinyV2.Constructor>> constructorsByClass) Builds Tiny2 text mapping SRG ids to MCP names, usingstructurefor descriptors.
-
Field Details
-
HEADER
- See Also:
-
-
Method Details
-
write
public static String write(JarStructure structure, CsvNames names, Map<String, List<TinyV2.Constructor>> constructorsByClass) Builds Tiny2 text mapping SRG ids to MCP names, usingstructurefor descriptors.- Parameters:
structure- the jar structure the descriptors come fromnames- the MCP names to map ontoconstructorsByClass- constructors keyed by owning class
-
read
Parses a Tiny2 file into flat SRG -> named maps.- Parameters:
file- the Tiny2 file to read
-