Class TinyV2

java.lang.Object
com.cleanroommc.gradle.api.names.TinyV2

public final class TinyV2 extends Object
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.

  • Field Details

  • 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, using structure for descriptors.
      Parameters:
      structure - the jar structure the descriptors come from
      names - the MCP names to map onto
      constructorsByClass - constructors keyed by owning class
    • read

      public static TinyV2.FlatNames read(Path file)
      Parses a Tiny2 file into flat SRG -> named maps.
      Parameters:
      file - the Tiny2 file to read