Class ConstructorMap

java.lang.Object
com.cleanroommc.gradle.api.util.inject.ConstructorMap

public final class ConstructorMap extends Object
MCP constructors.txt: <id> <owner> <descriptor> per line.

The id is what turns up in the p_i<id>_<index>_ parameter names of a constructor.

  • Constructor Details

    • ConstructorMap

      public ConstructorMap()
  • Method Details

    • load

      public static ConstructorMap load(Path file) throws IOException
      Throws:
      IOException
    • get

      public int get(String owner, String descriptor)
      The constructor's id, or -1 when the map does not hold it.
      Parameters:
      owner - internal name of the declaring class
      descriptor - the constructor's descriptor
    • generate

      public int generate(String owner, String descriptor)